gameScene beginning
This commit is contained in:
parent
edd234916b
commit
2106458d16
|
@ -570,6 +570,7 @@ GameObject:
|
|||
- component: {fileID: 5609352768173468343}
|
||||
- component: {fileID: 7847799551035619544}
|
||||
- component: {fileID: 3837216061230793568}
|
||||
- component: {fileID: 8510394576666186474}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
|
@ -585,8 +586,8 @@ Transform:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6163557566655415017}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0.011396202, y: 0.98857015, z: -0.1103237, w: -0.10211718}
|
||||
m_LocalPosition: {x: 8.5044365, y: 3.5927956, z: 10.26652}
|
||||
m_LocalRotation: {x: -0.02546724, y: 0.9636698, z: -0.2465418, w: -0.09954502}
|
||||
m_LocalPosition: {x: 10.297432, y: 12.445195, z: 18.85268}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
|
@ -742,8 +743,70 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
cam: {fileID: 7435709693246867821}
|
||||
scrollSpeed: 2
|
||||
scrollSpeed: 2.5
|
||||
stopAfterTime: 15
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 1.710919
|
||||
outSlope: 1.710919
|
||||
tangentMode: 34
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 0.2991759
|
||||
value: 0.51186574
|
||||
inSlope: 0.50856996
|
||||
outSlope: 0.50856996
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 1
|
||||
outWeight: 0.30844653
|
||||
- serializedVersion: 3
|
||||
time: 0.6705839
|
||||
value: 0.6387135
|
||||
inSlope: 0.078333884
|
||||
outSlope: 0.078333884
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.37746048
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 1.0967482
|
||||
outSlope: 1.0967482
|
||||
tangentMode: 34
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
sens: {x: 300, y: 3}
|
||||
--- !u!114 &8510394576666186474
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6163557566655415017}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c2d4e884ed2ba0944bfe55454353bc2d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
mainCamera: {fileID: 3255403189825384754}
|
||||
layerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 1024
|
||||
selectLayer:
|
||||
serializedVersion: 2
|
||||
m_Bits: 256
|
||||
--- !u!1 &6734946956435011452
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -952,7 +1015,7 @@ MonoBehaviour:
|
|||
m_SpeedMode: 0
|
||||
m_MaxSpeed: 0
|
||||
m_AccelTime: 0.2
|
||||
m_DecelTime: 0.1
|
||||
m_DecelTime: 0.25
|
||||
m_InputAxisName: Mouse Y
|
||||
m_InputAxisValue: 0
|
||||
m_InvertInput: 1
|
||||
|
@ -976,7 +1039,7 @@ MonoBehaviour:
|
|||
m_SpeedMode: 0
|
||||
m_MaxSpeed: 0
|
||||
m_AccelTime: 0.1
|
||||
m_DecelTime: 0.1
|
||||
m_DecelTime: 0.25
|
||||
m_InputAxisName: Mouse X
|
||||
m_InputAxisValue: 0
|
||||
m_InvertInput: 0
|
||||
|
@ -1027,9 +1090,8 @@ MonoBehaviour:
|
|||
m_EditorClassIdentifier:
|
||||
target: {fileID: 5419760417237671588}
|
||||
origin: {fileID: 7435709693246867821}
|
||||
prevObject: {fileID: 0}
|
||||
defaultMaterial: {fileID: 2100000, guid: 1fb12e769af8dfc4b9c47b291e1da192, type: 2}
|
||||
hitMaterial: {fileID: 2100000, guid: 487f1aaeb1fd5674a8842eab66d03872, type: 2}
|
||||
hideFadeSpeed: 7
|
||||
showFadeSpeed: 2
|
||||
sphereRadius: 2
|
||||
maxSphereRayDistanceOffset: {x: 0, y: 3, z: 0}
|
||||
--- !u!114 &7757173428948913319
|
||||
|
|
|
@ -12,7 +12,7 @@ GameObject:
|
|||
- component: {fileID: 8262130276470859262}
|
||||
- component: {fileID: 39033916665346183}
|
||||
- component: {fileID: 4956097427804774761}
|
||||
m_Layer: 6
|
||||
m_Layer: 10
|
||||
m_Name: Slot
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
|
@ -116,7 +116,7 @@ GameObject:
|
|||
m_Component:
|
||||
- component: {fileID: 7515572981473435671}
|
||||
- component: {fileID: 5087905053802543442}
|
||||
m_Layer: 6
|
||||
m_Layer: 10
|
||||
m_Name: SlotHolder
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
|
@ -165,7 +165,7 @@ GameObject:
|
|||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3521410157466494107}
|
||||
m_Layer: 6
|
||||
m_Layer: 10
|
||||
m_Name: TowerSpawnPoint
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
|
|
|
@ -501,12 +501,6 @@ MonoBehaviour:
|
|||
m_LightCookieSize: {x: 1, y: 1}
|
||||
m_LightCookieOffset: {x: 0, y: 0}
|
||||
m_SoftShadowQuality: 0
|
||||
--- !u!1 &1267316003 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7435709693246867821, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1774990605473331699}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1425080745
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -1111,191 +1105,6 @@ PrefabInstance:
|
|||
propertyPath: m_Name
|
||||
value: Cinemachine
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3313768392743891090, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: fadeSpeed
|
||||
value: 5.05
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3313768392743891090, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: hideFadeSpeed
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3313768392743891090, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: showFadeSpeed
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: cam
|
||||
value:
|
||||
objectReference: {fileID: 1267316003}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: sens.x
|
||||
value: 300
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: sens.y
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: scrollSpeed
|
||||
value: 2.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: stopAfterTime
|
||||
value: 15
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: stopStiffness
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: decelerationMultiplier
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.size
|
||||
value: 4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[1].time
|
||||
value: 0.2991759
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[2].time
|
||||
value: 0.6705839
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[3].time
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[1].value
|
||||
value: 0.51186574
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[2].value
|
||||
value: 0.6387135
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[3].value
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[0].inSlope
|
||||
value: 1.710919
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[1].inSlope
|
||||
value: 0.50856996
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[2].inSlope
|
||||
value: 0.078333884
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[3].inSlope
|
||||
value: 1.0967482
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[0].outSlope
|
||||
value: 1.710919
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[1].inWeight
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[1].outSlope
|
||||
value: 0.50856996
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[2].inWeight
|
||||
value: 0.37746048
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[2].outSlope
|
||||
value: 0.078333884
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[3].inWeight
|
||||
value: 0.33333334
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[3].outSlope
|
||||
value: 1.0967482
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[0].outWeight
|
||||
value: 0.33333334
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[1].outWeight
|
||||
value: 0.30844653
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[2].outWeight
|
||||
value: 0.33333334
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[0].tangentMode
|
||||
value: 34
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[1].tangentMode
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[2].tangentMode
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3837216061230793568, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: curve.m_Curve.Array.data[3].tangentMode
|
||||
value: 34
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5664717836218291588, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: m_XAxis.m_DecelTime
|
||||
value: 0.25
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5664717836218291588, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: m_YAxis.m_DecelTime
|
||||
value: 0.25
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8882344377078016156, guid: fd9f9b61c0ebb324ebc9f929e26706bc,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 82109106f3e34b446b7e5e0a75799411
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -27,9 +27,11 @@ public class HideWall : MonoBehaviour
|
|||
|
||||
List<GameObject> hitObjectsThisFrame = new List<GameObject>();
|
||||
|
||||
|
||||
for (int i = 0; i < hits.Length; i++)
|
||||
{
|
||||
if (hits[i].collider != null && hits[i].collider.CompareTag("Wall"))
|
||||
//print(hits[i].collider.gameObject.name);
|
||||
if (hits[i].collider != null)
|
||||
{
|
||||
var hitGameObject = hits[i].collider.gameObject;
|
||||
hitObjectsThisFrame.Add(hitGameObject);
|
||||
|
|
|
@ -41,11 +41,13 @@ public class WallOpacity : MonoBehaviour
|
|||
{
|
||||
isShowing = true;
|
||||
showFadeSpeed = speed;
|
||||
print("showing wall");
|
||||
}
|
||||
|
||||
public void HideWall(float speed)
|
||||
{
|
||||
isShowing = false;
|
||||
hideFadeSpeed = speed;
|
||||
print("hdiding wall");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue