diff --git a/Assets/Animations/UI/cocksex.controller b/Assets/Animations/UI/cocksex.controller index 6cec86d..cb762d2 100644 --- a/Assets/Animations/UI/cocksex.controller +++ b/Assets/Animations/UI/cocksex.controller @@ -8,8 +8,8 @@ AnimatorStateTransition: m_PrefabAsset: {fileID: 0} m_Name: m_Conditions: - - m_ConditionMode: 1 - m_ConditionEvent: Close + - m_ConditionMode: 2 + m_ConditionEvent: IsOpen m_EventTreshold: 0 m_DstStateMachine: {fileID: 0} m_DstState: {fileID: 2682460963827588746} @@ -25,58 +25,6 @@ AnimatorStateTransition: m_InterruptionSource: 0 m_OrderedInterruption: 1 m_CanTransitionToSelf: 1 ---- !u!1101 &-7641027645006483654 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: - - m_ConditionMode: 1 - m_ConditionEvent: Open - m_EventTreshold: 0 - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: -2280432560819215181} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0 - m_TransitionOffset: 0 - m_ExitTime: 0 - m_HasExitTime: 0 - m_HasFixedDuration: 0 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1102 &-2280432560819215181 -AnimatorState: - serializedVersion: 6 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: FullOut - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 8958318208459601179} - m_StateMachineBehaviours: [] - m_Position: {x: 50, y: 50, z: 0} - m_IKOnFeet: 0 - m_WriteDefaultValues: 1 - m_Mirror: 0 - m_SpeedParameterActive: 0 - m_MirrorParameterActive: 0 - m_CycleOffsetParameterActive: 0 - m_TimeParameterActive: 0 - m_Motion: {fileID: 7400000, guid: a9f8f24edd1852c4e829d921b091c37d, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: --- !u!1102 &-2135777584370832094 AnimatorState: serializedVersion: 6 @@ -88,7 +36,6 @@ AnimatorState: m_Speed: 1 m_CycleOffset: 0 m_Transitions: - - {fileID: -7641027645006483654} - {fileID: -8896916857368744256} m_StateMachineBehaviours: [] m_Position: {x: 50, y: 50, z: 0} @@ -120,9 +67,6 @@ AnimatorStateMachine: - serializedVersion: 1 m_State: {fileID: -2135777584370832094} m_Position: {x: 240, y: 30, z: 0} - - serializedVersion: 1 - m_State: {fileID: -2280432560819215181} - m_Position: {x: 490, y: 30, z: 0} m_ChildStateMachines: [] m_AnyStateTransitions: [] m_EntryTransitions: [] @@ -142,14 +86,8 @@ AnimatorController: m_Name: cocksex serializedVersion: 5 m_AnimatorParameters: - - m_Name: Open - m_Type: 9 - m_DefaultFloat: 0 - m_DefaultInt: 0 - m_DefaultBool: 0 - m_Controller: {fileID: 9100000} - - m_Name: Close - m_Type: 9 + - m_Name: IsOpen + m_Type: 4 m_DefaultFloat: 0 m_DefaultInt: 0 m_DefaultBool: 0 @@ -203,7 +141,7 @@ AnimatorStateTransition: m_Name: m_Conditions: - m_ConditionMode: 1 - m_ConditionEvent: Open + m_ConditionEvent: IsOpen m_EventTreshold: 0 m_DstStateMachine: {fileID: 0} m_DstState: {fileID: -2135777584370832094} @@ -219,28 +157,3 @@ AnimatorStateTransition: m_InterruptionSource: 0 m_OrderedInterruption: 1 m_CanTransitionToSelf: 1 ---- !u!1101 &8958318208459601179 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: - - m_ConditionMode: 1 - m_ConditionEvent: Close - m_EventTreshold: 0 - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 2682460963827588746} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.2 - m_TransitionOffset: 0 - m_ExitTime: 0 - m_HasExitTime: 0 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 diff --git a/Assets/Prefabs/Towers/BaseTower.prefab b/Assets/Prefabs/Towers/BaseTower.prefab index 5b00d60..7523371 100644 --- a/Assets/Prefabs/Towers/BaseTower.prefab +++ b/Assets/Prefabs/Towers/BaseTower.prefab @@ -1,5 +1,758 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: +--- !u!1 &872127579833310669 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 527409087646353271} + - component: {fileID: 7883233016828513649} + - component: {fileID: 5565472806559733162} + - component: {fileID: -4368249141776341009} + - component: {fileID: 8326258332086092779} + m_Layer: 8 + m_Name: BaseTower + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &527409087646353271 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 872127579833310669} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 35, z: -42} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 5000648575824335922} + - {fileID: 3231648858884615218} + - {fileID: 4220667717328304921} + - {fileID: 85471039882070109} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &7883233016828513649 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 872127579833310669} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 62293fbacde88045196dca1e291b5f23, type: 3} + m_Name: + m_EditorClassIdentifier: + startHealth: 100 + OnHealthZero: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 7883233016828513649} + m_TargetAssemblyTypeName: HealthComponent, Assembly-CSharp + m_MethodName: SimpleKill + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + OnHealthChange: + m_PersistentCalls: + m_Calls: [] +--- !u!65 &5565472806559733162 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 872127579833310669} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!114 &-4368249141776341009 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 872127579833310669} + m_Enabled: 0 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5fea29bb7c508c244a1f805a5fd3fc4d, type: 3} + m_Name: + m_EditorClassIdentifier: + outlineMode: 0 + outlineColor: {r: 1, g: 1, b: 1, a: 1} + outlineWidth: 10 + precomputeOutline: 0 + bakeKeys: [] + bakeValues: [] +--- !u!114 &8326258332086092779 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 872127579833310669} + m_Enabled: 0 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 319d2fe34a804e245819465c9505ea59, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ExcludedPropertiesInInspector: + - m_Script + m_LockStageInInspector: + m_StreamingVersion: 20170927 + m_Priority: 10 + m_StandbyUpdate: 2 + m_LookAt: {fileID: 527409087646353271} + m_Follow: {fileID: 527409087646353271} + m_CommonLens: 1 + m_Lens: + FieldOfView: 40 + OrthographicSize: 10 + NearClipPlane: 0.1 + FarClipPlane: 5000 + Dutch: 0 + ModeOverride: 0 + LensShift: {x: 0, y: 0} + GateFit: 2 + FocusDistance: 10 + m_SensorSize: {x: 1, y: 1} + m_Transitions: + m_BlendHint: 0 + m_InheritPosition: 0 + m_OnCameraLive: + m_PersistentCalls: + m_Calls: [] + m_LegacyBlendHint: 0 + m_YAxis: + Value: 0.5 + m_SpeedMode: 0 + m_MaxSpeed: 2 + m_AccelTime: 0.2 + m_DecelTime: 0.1 + m_InputAxisName: Mouse Y + m_InputAxisValue: 0 + m_InvertInput: 0 + m_MinValue: 0 + m_MaxValue: 1 + m_Wrap: 0 + m_Recentering: + m_enabled: 0 + m_WaitTime: 1 + m_RecenteringTime: 2 + m_LegacyHeadingDefinition: -1 + m_LegacyVelocityFilterStrength: -1 + m_YAxisRecentering: + m_enabled: 0 + m_WaitTime: 1 + m_RecenteringTime: 2 + m_LegacyHeadingDefinition: -1 + m_LegacyVelocityFilterStrength: -1 + m_XAxis: + Value: 0 + m_SpeedMode: 0 + m_MaxSpeed: 300 + m_AccelTime: 0.1 + m_DecelTime: 0.1 + m_InputAxisName: Mouse X + m_InputAxisValue: 0 + m_InvertInput: 1 + m_MinValue: -180 + m_MaxValue: 180 + m_Wrap: 1 + m_Recentering: + m_enabled: 0 + m_WaitTime: 1 + m_RecenteringTime: 2 + m_LegacyHeadingDefinition: -1 + m_LegacyVelocityFilterStrength: -1 + m_Heading: + m_Definition: 2 + m_VelocityFilterStrength: 4 + m_Bias: 0 + m_RecenterToTargetHeading: + m_enabled: 0 + m_WaitTime: 1 + m_RecenteringTime: 2 + m_LegacyHeadingDefinition: -1 + m_LegacyVelocityFilterStrength: -1 + m_BindingMode: 5 + m_SplineCurvature: 0.2 + m_Orbits: + - m_Height: 4.5 + m_Radius: 1.75 + - m_Height: 2.5 + m_Radius: 3 + - m_Height: 0.4 + m_Radius: 1.3 + m_LegacyHeadingBias: 3.4028235e+38 + m_Rigs: + - {fileID: 6733197279741857448} + - {fileID: 3875905170154804327} + - {fileID: 7471033669110783771} +--- !u!1 &881819783351085137 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3043206501377313387} + - component: {fileID: 1604521831440090531} + - component: {fileID: 3654006014515307891} + - component: {fileID: 8314437777887737673} + m_Layer: 0 + m_Name: cm + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3043206501377313387 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 881819783351085137} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 85471039882070109} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1604521831440090531 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 881819783351085137} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ac0b09e7857660247b1477e93731de29, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &3654006014515307891 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 881819783351085137} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9384ab8608cdc3d479fe89cd51eed48f, type: 3} + m_Name: + m_EditorClassIdentifier: + m_BindingMode: 5 + m_FollowOffset: {x: 0, y: 2.5, z: -3} + m_XDamping: 1 + m_YDamping: 1 + m_ZDamping: 1 + m_AngularDampingMode: 0 + m_PitchDamping: 0 + m_YawDamping: 0 + m_RollDamping: 0 + m_AngularDamping: 0 + m_Heading: + m_Definition: 2 + m_VelocityFilterStrength: 4 + m_Bias: 0 + m_RecenterToTargetHeading: + m_enabled: 0 + m_WaitTime: 1 + m_RecenteringTime: 2 + m_LegacyHeadingDefinition: -1 + m_LegacyVelocityFilterStrength: -1 + m_XAxis: + Value: 0 + m_SpeedMode: 0 + m_MaxSpeed: 300 + m_AccelTime: 0.1 + m_DecelTime: 0.1 + m_InputAxisName: + m_InputAxisValue: 0 + m_InvertInput: 1 + m_MinValue: -180 + m_MaxValue: 180 + m_Wrap: 1 + m_Recentering: + m_enabled: 0 + m_WaitTime: 1 + m_RecenteringTime: 2 + m_LegacyHeadingDefinition: -1 + m_LegacyVelocityFilterStrength: -1 + m_LegacyRadius: 3.4028235e+38 + m_LegacyHeightOffset: 3.4028235e+38 + m_LegacyHeadingBias: 3.4028235e+38 + m_HeadingIsSlave: 1 +--- !u!114 &8314437777887737673 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 881819783351085137} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4044717213e31446939f7bd49c896ea, type: 3} + m_Name: + m_EditorClassIdentifier: + m_TrackedObjectOffset: {x: 0, y: 0, z: 0} + m_LookaheadTime: 0 + m_LookaheadSmoothing: 0 + m_LookaheadIgnoreY: 0 + m_HorizontalDamping: 0 + m_VerticalDamping: 0 + m_ScreenX: 0.5 + m_ScreenY: 0.6 + m_DeadZoneWidth: 0 + m_DeadZoneHeight: 0 + m_SoftZoneWidth: 0.8 + m_SoftZoneHeight: 0.8 + m_BiasX: 0 + m_BiasY: 0 + m_CenterOnActivate: 1 +--- !u!1 &1829274643066236986 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5028610344310564584} + - component: {fileID: 2921780199747443927} + - component: {fileID: 703045981101343854} + - component: {fileID: 429639274105194281} + m_Layer: 0 + m_Name: cm + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5028610344310564584 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1829274643066236986} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 3231648858884615218} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &2921780199747443927 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1829274643066236986} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ac0b09e7857660247b1477e93731de29, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &703045981101343854 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1829274643066236986} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9384ab8608cdc3d479fe89cd51eed48f, type: 3} + m_Name: + m_EditorClassIdentifier: + m_BindingMode: 5 + m_FollowOffset: {x: 0, y: 2.5, z: -3} + m_XDamping: 1 + m_YDamping: 1 + m_ZDamping: 1 + m_AngularDampingMode: 0 + m_PitchDamping: 0 + m_YawDamping: 0 + m_RollDamping: 0 + m_AngularDamping: 0 + m_Heading: + m_Definition: 2 + m_VelocityFilterStrength: 4 + m_Bias: 0 + m_RecenterToTargetHeading: + m_enabled: 0 + m_WaitTime: 1 + m_RecenteringTime: 2 + m_LegacyHeadingDefinition: -1 + m_LegacyVelocityFilterStrength: -1 + m_XAxis: + Value: 0 + m_SpeedMode: 0 + m_MaxSpeed: 300 + m_AccelTime: 0.1 + m_DecelTime: 0.1 + m_InputAxisName: + m_InputAxisValue: 0 + m_InvertInput: 1 + m_MinValue: -180 + m_MaxValue: 180 + m_Wrap: 1 + m_Recentering: + m_enabled: 0 + m_WaitTime: 1 + m_RecenteringTime: 2 + m_LegacyHeadingDefinition: -1 + m_LegacyVelocityFilterStrength: -1 + m_LegacyRadius: 3.4028235e+38 + m_LegacyHeightOffset: 3.4028235e+38 + m_LegacyHeadingBias: 3.4028235e+38 + m_HeadingIsSlave: 1 +--- !u!114 &429639274105194281 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1829274643066236986} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4044717213e31446939f7bd49c896ea, type: 3} + m_Name: + m_EditorClassIdentifier: + m_TrackedObjectOffset: {x: 0, y: 0, z: 0} + m_LookaheadTime: 0 + m_LookaheadSmoothing: 0 + m_LookaheadIgnoreY: 0 + m_HorizontalDamping: 0 + m_VerticalDamping: 0 + m_ScreenX: 0.5 + m_ScreenY: 0.5 + m_DeadZoneWidth: 0 + m_DeadZoneHeight: 0 + m_SoftZoneWidth: 0.8 + m_SoftZoneHeight: 0.8 + m_BiasX: 0 + m_BiasY: 0 + m_CenterOnActivate: 1 +--- !u!1 &3352080502988888719 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7908333169234343085} + - component: {fileID: 932518073561982220} + - component: {fileID: 2611612522491397238} + - component: {fileID: 2140871769417237111} + m_Layer: 0 + m_Name: cm + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7908333169234343085 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3352080502988888719} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 4220667717328304921} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &932518073561982220 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3352080502988888719} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ac0b09e7857660247b1477e93731de29, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &2611612522491397238 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3352080502988888719} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9384ab8608cdc3d479fe89cd51eed48f, type: 3} + m_Name: + m_EditorClassIdentifier: + m_BindingMode: 5 + m_FollowOffset: {x: 0, y: 2.5, z: -3} + m_XDamping: 1 + m_YDamping: 1 + m_ZDamping: 1 + m_AngularDampingMode: 0 + m_PitchDamping: 0 + m_YawDamping: 0 + m_RollDamping: 0 + m_AngularDamping: 0 + m_Heading: + m_Definition: 2 + m_VelocityFilterStrength: 4 + m_Bias: 0 + m_RecenterToTargetHeading: + m_enabled: 0 + m_WaitTime: 1 + m_RecenteringTime: 2 + m_LegacyHeadingDefinition: -1 + m_LegacyVelocityFilterStrength: -1 + m_XAxis: + Value: 0 + m_SpeedMode: 0 + m_MaxSpeed: 300 + m_AccelTime: 0.1 + m_DecelTime: 0.1 + m_InputAxisName: + m_InputAxisValue: 0 + m_InvertInput: 1 + m_MinValue: -180 + m_MaxValue: 180 + m_Wrap: 1 + m_Recentering: + m_enabled: 0 + m_WaitTime: 1 + m_RecenteringTime: 2 + m_LegacyHeadingDefinition: -1 + m_LegacyVelocityFilterStrength: -1 + m_LegacyRadius: 3.4028235e+38 + m_LegacyHeightOffset: 3.4028235e+38 + m_LegacyHeadingBias: 3.4028235e+38 + m_HeadingIsSlave: 1 +--- !u!114 &2140871769417237111 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3352080502988888719} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4044717213e31446939f7bd49c896ea, type: 3} + m_Name: + m_EditorClassIdentifier: + m_TrackedObjectOffset: {x: 0, y: 0, z: 0} + m_LookaheadTime: 0 + m_LookaheadSmoothing: 0 + m_LookaheadIgnoreY: 0 + m_HorizontalDamping: 0 + m_VerticalDamping: 0 + m_ScreenX: 0.5 + m_ScreenY: 0.55 + m_DeadZoneWidth: 0 + m_DeadZoneHeight: 0 + m_SoftZoneWidth: 0.8 + m_SoftZoneHeight: 0.8 + m_BiasX: 0 + m_BiasY: 0 + m_CenterOnActivate: 1 +--- !u!1 &3558272651156871278 +GameObject: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3231648858884615218} + - component: {fileID: 6733197279741857448} + m_Layer: 0 + m_Name: TopRig + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3231648858884615218 +Transform: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3558272651156871278} + serializedVersion: 2 + m_LocalRotation: {x: 0.34042525, y: 0.0000000228801, z: -0.000000008283737, w: 0.9402716} + m_LocalPosition: {x: 0, y: 1.661, z: -3} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 5028610344310564584} + m_Father: {fileID: 527409087646353271} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &6733197279741857448 +MonoBehaviour: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3558272651156871278} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 45e653bab7fb20e499bda25e1b646fea, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ExcludedPropertiesInInspector: + - m_Script + - Header + - Extensions + - m_Priority + - m_Transitions + - m_Follow + - m_StandbyUpdate + - m_Lens + m_LockStageInInspector: 00000000 + m_StreamingVersion: 20170927 + m_Priority: 10 + m_StandbyUpdate: 2 + m_LookAt: {fileID: 0} + m_Follow: {fileID: 0} + m_Lens: + FieldOfView: 40 + OrthographicSize: 10 + NearClipPlane: 0.1 + FarClipPlane: 5000 + Dutch: 0 + ModeOverride: 0 + LensShift: {x: 0, y: 0} + GateFit: 2 + FocusDistance: 10 + m_SensorSize: {x: 1, y: 1} + m_Transitions: + m_BlendHint: 0 + m_InheritPosition: 0 + m_OnCameraLive: + m_PersistentCalls: + m_Calls: [] + m_LegacyBlendHint: 0 + m_ComponentOwner: {fileID: 5028610344310564584} +--- !u!1 &4474798581911876227 +GameObject: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4220667717328304921} + - component: {fileID: 3875905170154804327} + m_Layer: 0 + m_Name: MiddleRig + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4220667717328304921 +Transform: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4474798581911876227} + serializedVersion: 2 + m_LocalRotation: {x: 0.32326588, y: 0.000000016282542, z: -0.0000000055622356, w: 0.9463082} + m_LocalPosition: {x: 0, y: 1.661, z: -3} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 7908333169234343085} + m_Father: {fileID: 527409087646353271} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &3875905170154804327 +MonoBehaviour: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4474798581911876227} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 45e653bab7fb20e499bda25e1b646fea, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ExcludedPropertiesInInspector: + - m_Script + - Header + - Extensions + - m_Priority + - m_Transitions + - m_Follow + - m_StandbyUpdate + - m_Lens + m_LockStageInInspector: 00000000 + m_StreamingVersion: 20170927 + m_Priority: 10 + m_StandbyUpdate: 2 + m_LookAt: {fileID: 0} + m_Follow: {fileID: 0} + m_Lens: + FieldOfView: 40 + OrthographicSize: 10 + NearClipPlane: 0.1 + FarClipPlane: 5000 + Dutch: 0 + ModeOverride: 0 + LensShift: {x: 0, y: 0} + GateFit: 2 + FocusDistance: 10 + m_SensorSize: {x: 1, y: 1} + m_Transitions: + m_BlendHint: 0 + m_InheritPosition: 0 + m_OnCameraLive: + m_PersistentCalls: + m_Calls: [] + m_LegacyBlendHint: 0 + m_ComponentOwner: {fileID: 7908333169234343085} --- !u!1 &4657144566828515878 GameObject: m_ObjectHideFlags: 0 @@ -12,6 +765,7 @@ GameObject: - component: {fileID: 6088264814045417804} - component: {fileID: 637976866739038905} - component: {fileID: 4487353065912845539} + - component: {fileID: 5572494207644769691} m_Layer: 8 m_Name: Canvas m_TagString: Untagged @@ -32,12 +786,13 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: - {fileID: 629681681890783641} + - {fileID: 318797087612540065} m_Father: {fileID: 527409087646353271} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: 1} - m_SizeDelta: {x: 1, y: 0.5} + m_SizeDelta: {x: 1.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5} --- !u!223 &6088264814045417804 Canvas: @@ -57,7 +812,7 @@ Canvas: m_OverridePixelPerfect: 0 m_SortingBucketNormalizedSize: 0 m_VertexColorAlwaysGammaSpace: 0 - m_AdditionalShaderChannelsFlag: 0 + m_AdditionalShaderChannelsFlag: 25 m_UpdateRectTransformForStandalone: 0 m_SortingLayerID: 0 m_SortingOrder: 0 @@ -97,11 +852,168 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} m_Name: m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 + m_IgnoreReversedGraphics: 0 m_BlockingObjects: 0 m_BlockingMask: serializedVersion: 2 m_Bits: 4294967295 +--- !u!114 &5572494207644769691 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4657144566828515878} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a3cef6d37caa7c467b68369285a9ac2a, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!1 &6024672194889604845 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 318797087612540065} + - component: {fileID: 1657211331249691368} + - component: {fileID: 877614474840363663} + - component: {fileID: 7262920026541109667} + - component: {fileID: 6693466165875802313} + m_Layer: 8 + m_Name: Delete + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &318797087612540065 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6024672194889604845} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 5000648575824335922} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0.173, y: 0} + m_SizeDelta: {x: 0.25, y: 0.25} + m_Pivot: {x: 0, y: 0} +--- !u!222 &1657211331249691368 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6024672194889604845} + m_CullTransparentMesh: 1 +--- !u!114 &877614474840363663 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6024672194889604845} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: 702eb809bfcc0b4c7b6222f4d72c5d63, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &7262920026541109667 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6024672194889604845} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 1, g: 0, b: 0, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 1, g: 0, b: 0, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 877614474840363663} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 6693466165875802313} + m_TargetAssemblyTypeName: TowerDeleter, Assembly-CSharp + m_MethodName: Delete + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &6693466165875802313 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6024672194889604845} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 56e3a423572a813999ef1a5b4d613178, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &6053929021546264277 GameObject: m_ObjectHideFlags: 0 @@ -177,6 +1089,85 @@ MonoBehaviour: m_FillOrigin: 1 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 +--- !u!1 &6616012430861705016 +GameObject: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 85471039882070109} + - component: {fileID: 7471033669110783771} + m_Layer: 0 + m_Name: BottomRig + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &85471039882070109 +Transform: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6616012430861705016} + serializedVersion: 2 + m_LocalRotation: {x: 0.3060453, y: 0.000000023165901, z: -0.0000000074471513, w: 0.952017} + m_LocalPosition: {x: 0, y: 1.661, z: -3} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 3043206501377313387} + m_Father: {fileID: 527409087646353271} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &7471033669110783771 +MonoBehaviour: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6616012430861705016} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 45e653bab7fb20e499bda25e1b646fea, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ExcludedPropertiesInInspector: + - m_Script + - Header + - Extensions + - m_Priority + - m_Transitions + - m_Follow + - m_StandbyUpdate + - m_Lens + m_LockStageInInspector: 00000000 + m_StreamingVersion: 20170927 + m_Priority: 10 + m_StandbyUpdate: 2 + m_LookAt: {fileID: 0} + m_Follow: {fileID: 0} + m_Lens: + FieldOfView: 40 + OrthographicSize: 10 + NearClipPlane: 0.1 + FarClipPlane: 5000 + Dutch: 0 + ModeOverride: 0 + LensShift: {x: 0, y: 0} + GateFit: 2 + FocusDistance: 10 + m_SensorSize: {x: 1, y: 1} + m_Transitions: + m_BlendHint: 0 + m_InheritPosition: 0 + m_OnCameraLive: + m_PersistentCalls: + m_Calls: [] + m_LegacyBlendHint: 0 + m_ComponentOwner: {fileID: 3043206501377313387} --- !u!1 &8398575655800056308 GameObject: m_ObjectHideFlags: 0 @@ -211,11 +1202,11 @@ RectTransform: - {fileID: 305161391166777012} m_Father: {fileID: 5000648575824335922} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: -0.12} - m_SizeDelta: {x: 0, y: -0.24} - m_Pivot: {x: 0.5, y: 0.5} + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 1, y: 0.26} + m_Pivot: {x: 1, y: 0} --- !u!222 &4781651999869071551 CanvasRenderer: m_ObjectHideFlags: 0 @@ -268,176 +1259,3 @@ MonoBehaviour: m_EditorClassIdentifier: healthBar: {fileID: 5350365205670160062} attachHealth: {fileID: 7883233016828513649} ---- !u!1001 &61646009847259292 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - serializedVersion: 3 - m_TransformParent: {fileID: 0} - m_Modifications: - - target: {fileID: -8679921383154817045, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -8679921383154817045, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -8679921383154817045, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -8679921383154817045, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: -8679921383154817045, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -8679921383154817045, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -8679921383154817045, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -8679921383154817045, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -8679921383154817045, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -8679921383154817045, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 919132149155446097, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - propertyPath: m_Name - value: BaseTower - objectReference: {fileID: 0} - - target: {fileID: 919132149155446097, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - propertyPath: m_Layer - value: 8 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_RemovedGameObjects: - - {fileID: -3133498875991405556, guid: eb5e13df78999ef878da1db5c63224e2, type: 3} - - {fileID: 1214824004972775095, guid: eb5e13df78999ef878da1db5c63224e2, type: 3} - m_AddedGameObjects: - - targetCorrespondingSourceObject: {fileID: -8679921383154817045, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - insertIndex: -1 - addedObject: {fileID: 5000648575824335922} - m_AddedComponents: - - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - insertIndex: -1 - addedObject: {fileID: 7883233016828513649} - - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - insertIndex: -1 - addedObject: {fileID: 5565472806559733162} - - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - insertIndex: -1 - addedObject: {fileID: -4368249141776341009} - m_SourcePrefab: {fileID: 100100000, guid: eb5e13df78999ef878da1db5c63224e2, type: 3} ---- !u!4 &527409087646353271 stripped -Transform: - m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - m_PrefabInstance: {fileID: 61646009847259292} - m_PrefabAsset: {fileID: 0} ---- !u!1 &872127579833310669 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: eb5e13df78999ef878da1db5c63224e2, - type: 3} - m_PrefabInstance: {fileID: 61646009847259292} - m_PrefabAsset: {fileID: 0} ---- !u!114 &7883233016828513649 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 872127579833310669} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 62293fbacde88045196dca1e291b5f23, type: 3} - m_Name: - m_EditorClassIdentifier: - startHealth: 100 - OnHealthZero: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 7883233016828513649} - m_TargetAssemblyTypeName: HealthComponent, Assembly-CSharp - m_MethodName: SimpleKill - m_Mode: 1 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 - OnHealthChange: - m_PersistentCalls: - m_Calls: [] ---- !u!65 &5565472806559733162 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 872127579833310669} - m_Material: {fileID: 0} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_LayerOverridePriority: 0 - m_IsTrigger: 0 - m_ProvidesContacts: 0 - m_Enabled: 1 - serializedVersion: 3 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!114 &-4368249141776341009 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 872127579833310669} - m_Enabled: 0 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5fea29bb7c508c244a1f805a5fd3fc4d, type: 3} - m_Name: - m_EditorClassIdentifier: - outlineMode: 0 - outlineColor: {r: 1, g: 1, b: 1, a: 1} - outlineWidth: 10 - precomputeOutline: 0 - bakeKeys: [] - bakeValues: [] diff --git a/Assets/Scenes/GameScene.unity b/Assets/Scenes/GameScene.unity index 50f98e0..28711d7 100644 --- a/Assets/Scenes/GameScene.unity +++ b/Assets/Scenes/GameScene.unity @@ -123,6 +123,110 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 0} +--- !u!1001 &66896262 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 968288136} + m_Modifications: + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalPosition.x + value: -6.25 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalPosition.y + value: 9 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalPosition.z + value: 7.475 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalRotation.w + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalRotation.x + value: -0.5 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalRotation.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalRotation.z + value: -0.5 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 90 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: -90 + objectReference: {fileID: 0} + - target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: Gap + value: 0.1 + objectReference: {fileID: 0} + - target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: Gap.x + value: 0.1 + objectReference: {fileID: 0} + - target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: Gap.y + value: 0.2 + objectReference: {fileID: 0} + - target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: gridType + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: GridSize.x + value: 7 + objectReference: {fileID: 0} + - target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: GridSize.y + value: 10 + objectReference: {fileID: 0} + - target: {fileID: 4738812082694162819, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_Name + value: GridSpawnerWall-z + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 0c13e24f92c86f84a85c76e0bca22830, type: 3} +--- !u!4 &66896263 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + m_PrefabInstance: {fileID: 66896262} + m_PrefabAsset: {fileID: 0} --- !u!1001 &203396308 PrefabInstance: m_ObjectHideFlags: 0 @@ -976,7 +1080,7 @@ PrefabInstance: - target: {fileID: 3313768392743891090, guid: fd9f9b61c0ebb324ebc9f929e26706bc, type: 3} propertyPath: sphereRange - value: 1.5 + value: 2.5 objectReference: {fileID: 0} - target: {fileID: 3313768392743891090, guid: fd9f9b61c0ebb324ebc9f929e26706bc, type: 3} @@ -1011,7 +1115,7 @@ PrefabInstance: - target: {fileID: 5664717836218291588, guid: fd9f9b61c0ebb324ebc9f929e26706bc, type: 3} propertyPath: m_Orbits.Array.data[2].m_Height - value: -5 + value: -10 objectReference: {fileID: 0} - target: {fileID: 5753661378891917460, guid: fd9f9b61c0ebb324ebc9f929e26706bc, type: 3} @@ -1147,7 +1251,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: acef1d7c80f784543acd3e1571e99495, type: 3} m_Name: m_EditorClassIdentifier: - RebuildGrid: 1 + RebuildGrid: 0 DebugTowerPrefab: {fileID: 8488737342646939416, guid: 9415cb10a1bd579269301ca4f61a1554, type: 3} SilhouetteMaterial: {fileID: 2100000, guid: 0610eb89b05f0b546929db3664a351d8, type: 2} @@ -1168,6 +1272,8 @@ Transform: - {fileID: 1554436712} - {fileID: 2098922851} - {fileID: 359510069} + - {fileID: 1016399494} + - {fileID: 66896263} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1001 &1001440767 @@ -1238,6 +1344,110 @@ PrefabInstance: m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 9d875dda41d470948bbe6fd408a7e835, type: 3} +--- !u!1001 &1016399493 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 968288136} + m_Modifications: + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalPosition.x + value: -6.25 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalPosition.y + value: 9 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalPosition.z + value: -7.475 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalRotation.w + value: 0.70710677 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalRotation.x + value: 0.70710677 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 90 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 90 + objectReference: {fileID: 0} + - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 90 + objectReference: {fileID: 0} + - target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: Gap + value: 0.1 + objectReference: {fileID: 0} + - target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: Gap.x + value: 0.2 + objectReference: {fileID: 0} + - target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: Gap.y + value: 0.1 + objectReference: {fileID: 0} + - target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: gridType + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: GridSize.x + value: 10 + objectReference: {fileID: 0} + - target: {fileID: 3798840069121289071, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: GridSize.y + value: 7 + objectReference: {fileID: 0} + - target: {fileID: 4738812082694162819, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + propertyPath: m_Name + value: GridSpawnerWall+z + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 0c13e24f92c86f84a85c76e0bca22830, type: 3} +--- !u!4 &1016399494 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, + type: 3} + m_PrefabInstance: {fileID: 1016399493} + m_PrefabAsset: {fileID: 0} --- !u!1 &1515922344 GameObject: m_ObjectHideFlags: 0 @@ -1632,12 +1842,12 @@ PrefabInstance: - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, type: 3} propertyPath: m_LocalPosition.y - value: 9.7 + value: 9 objectReference: {fileID: 0} - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, type: 3} propertyPath: m_LocalPosition.z - value: -7.3 + value: -6.25 objectReference: {fileID: 0} - target: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, type: 3} diff --git a/Assets/Scenes/TowerPlacement.unity b/Assets/Scenes/TowerPlacement.unity index d43b1ba..af367b9 100644 --- a/Assets/Scenes/TowerPlacement.unity +++ b/Assets/Scenes/TowerPlacement.unity @@ -170,8 +170,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: RebuildGrid: 0 - DebugTowerPrefab: {fileID: 8488737342646939416, guid: 9415cb10a1bd579269301ca4f61a1554, - type: 3} SilhouetteMaterial: {fileID: 2100000, guid: 0610eb89b05f0b546929db3664a351d8, type: 2} --- !u!1 &60408394 GameObject: @@ -290,6 +288,92 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 60408394} m_CullTransparentMesh: 1 +--- !u!1 &217430505 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 217430506} + - component: {fileID: 217430508} + - component: {fileID: 217430507} + - component: {fileID: 217430509} + m_Layer: 5 + m_Name: OpenTrigger + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &217430506 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 217430505} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1361712799} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 887.0786, y: 467.78867} + m_SizeDelta: {x: 145.8427, y: 145.8427} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &217430507 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 217430505} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0b148fe25e99eb48b9724523833bab1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Delegates: [] +--- !u!222 &217430508 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 217430505} + m_CullTransparentMesh: 1 +--- !u!114 &217430509 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 217430505} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Texture: {fileID: 0} + m_UVRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 --- !u!1 &248072532 GameObject: m_ObjectHideFlags: 0 @@ -434,6 +518,47 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 260681845} m_CullTransparentMesh: 1 +--- !u!21 &261155270 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: UI/RoundedCorners/IndependentRoundedCorners + m_Shader: {fileID: 4800000, guid: d3beb88e61f88ca4393acdefb005fa70, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _ColorMask: 15 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _UseUIAlphaClip: 0 + m_Colors: + - _halfSize: {r: 35.4485, g: 38.0555, b: 0, a: 0} + - _r: {r: 40, g: 0, b: 0, a: 40} + - _rect2props: {r: 20.000002, g: -0.0000038146973, b: 37.833046, a: 37.833046} + m_BuildTextureStacks: [] --- !u!4 &268589088 stripped Transform: m_CorrespondingSourceObject: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, @@ -687,47 +812,6 @@ RectTransform: m_AnchoredPosition: {x: 0, y: -2.008855} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} ---- !u!21 &381726217 -Material: - serializedVersion: 8 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: UI/RoundedCorners/IndependentRoundedCorners - m_Shader: {fileID: 4800000, guid: d3beb88e61f88ca4393acdefb005fa70, type: 3} - m_Parent: {fileID: 0} - m_ModifiedSerializedProperties: 0 - m_ValidKeywords: [] - m_InvalidKeywords: [] - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_LockedProperties: - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Ints: [] - m_Floats: - - _ColorMask: 15 - - _Stencil: 0 - - _StencilComp: 8 - - _StencilOp: 0 - - _StencilReadMask: 255 - - _StencilWriteMask: 255 - - _UseUIAlphaClip: 0 - m_Colors: - - _halfSize: {r: 97.8265, g: 37.763, b: 0, a: 0} - - _r: {r: 30.96, g: 0, b: 0, a: 0} - - _rect2props: {r: 7.7400208, g: -7.7400017, b: 84.93025, a: 95.87626} - m_BuildTextureStacks: [] --- !u!1 &426438110 GameObject: m_ObjectHideFlags: 0 @@ -801,108 +885,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 426438110} m_CullTransparentMesh: 1 ---- !u!1 &455871645 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 455871648} - - component: {fileID: 455871647} - - component: {fileID: 455871646} - m_Layer: 5 - m_Name: CloseUITrigger - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &455871646 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 455871645} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ff219968359ff3a4490aea564d194887, type: 3} - m_Name: - m_EditorClassIdentifier: - anim: {fileID: 1325887244} - animationCall: Close - activateGo: {fileID: 0} - deactivateSelf: 1 - affectedObj: {fileID: 1458184090} - count: 0 - maxCount: 2 - currentCount: 0 ---- !u!61 &455871647 -BoxCollider2D: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 455871645} - m_Enabled: 1 - m_Density: 1 - m_Material: {fileID: 0} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_LayerOverridePriority: 0 - m_ForceSendLayers: - serializedVersion: 2 - m_Bits: 4294967295 - m_ForceReceiveLayers: - serializedVersion: 2 - m_Bits: 4294967295 - m_ContactCaptureLayers: - serializedVersion: 2 - m_Bits: 4294967295 - m_CallbackLayers: - serializedVersion: 2 - m_Bits: 4294967295 - m_IsTrigger: 1 - m_UsedByEffector: 0 - m_UsedByComposite: 0 - m_Offset: {x: 0, y: 0} - m_SpriteTilingProperty: - border: {x: 0, y: 0, z: 0, w: 0} - pivot: {x: 0, y: 0} - oldSize: {x: 0, y: 0} - newSize: {x: 0, y: 0} - adaptiveTilingThreshold: 0 - drawMode: 0 - adaptiveTiling: 0 - m_AutoTiling: 0 - serializedVersion: 2 - m_Size: {x: 500, y: 1100} - m_EdgeRadius: 0 ---- !u!224 &455871648 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 455871645} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1361712799} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: -28, y: 0} - m_SizeDelta: {x: 100, y: 100} - m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &510617948 GameObject: m_ObjectHideFlags: 0 @@ -1158,7 +1140,7 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 542957379} m_CullTransparentMesh: 1 ---- !u!21 &553111349 +--- !u!21 &654460998 Material: serializedVersion: 8 m_ObjectHideFlags: 0 @@ -1195,9 +1177,9 @@ Material: - _StencilWriteMask: 255 - _UseUIAlphaClip: 0 m_Colors: - - _halfSize: {r: 36.5705, g: 37.7215, b: 0, a: 0} - - _r: {r: 40, g: 0, b: 0, a: 40} - - _rect2props: {r: 20, g: -0.0000076293945, b: 38.390244, a: 38.390244} + - _halfSize: {r: 97.85, g: 477.754, b: 0, a: 0} + - _r: {r: 0, g: 0, b: 0, a: 40} + - _rect2props: {r: 10, g: 9.999939, b: 407.01352, a: 392.87137} m_BuildTextureStacks: [] --- !u!1 &665775405 GameObject: @@ -1316,6 +1298,47 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 665775405} m_CullTransparentMesh: 1 +--- !u!21 &687683564 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: UI/RoundedCorners/IndependentRoundedCorners + m_Shader: {fileID: 4800000, guid: d3beb88e61f88ca4393acdefb005fa70, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _ColorMask: 15 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _UseUIAlphaClip: 0 + m_Colors: + - _halfSize: {r: 360, g: 550, b: 0, a: 0} + - _r: {r: 0, g: 59.4, b: 59.4, a: 59.4} + - _rect2props: {r: -14.850006, g: 14.849915, b: 622.4661, a: 601.4651} + m_BuildTextureStacks: [] --- !u!1001 &698712475 PrefabInstance: m_ObjectHideFlags: 0 @@ -1516,7 +1539,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 925777692} + m_Material: {fileID: 1008385119} m_Color: {r: 0.9811321, g: 0.8669752, b: 0.8669752, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} @@ -1539,47 +1562,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 698871428} m_CullTransparentMesh: 1 ---- !u!21 &728463258 -Material: - serializedVersion: 8 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: UI/RoundedCorners/IndependentRoundedCorners - m_Shader: {fileID: 4800000, guid: d3beb88e61f88ca4393acdefb005fa70, type: 3} - m_Parent: {fileID: 0} - m_ModifiedSerializedProperties: 0 - m_ValidKeywords: [] - m_InvalidKeywords: [] - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_LockedProperties: - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Ints: [] - m_Floats: - - _ColorMask: 15 - - _Stencil: 0 - - _StencilComp: 8 - - _StencilOp: 0 - - _StencilReadMask: 255 - - _StencilWriteMask: 255 - - _UseUIAlphaClip: 0 - m_Colors: - - _halfSize: {r: 5, g: 13.05, b: 0, a: 0} - - _r: {r: 0, g: 0, b: 5, a: 5} - - _rect2props: {r: 0.00000047683716, g: 2.4999986, b: 10.995511, a: 10.995511} - m_BuildTextureStacks: [] --- !u!1 &747314135 GameObject: m_ObjectHideFlags: 0 @@ -1850,47 +1832,6 @@ GameObject: type: 3} m_PrefabInstance: {fileID: 808311836} m_PrefabAsset: {fileID: 0} ---- !u!21 &925777692 -Material: - serializedVersion: 8 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: UI/RoundedCorners/IndependentRoundedCorners - m_Shader: {fileID: 4800000, guid: d3beb88e61f88ca4393acdefb005fa70, type: 3} - m_Parent: {fileID: 0} - m_ModifiedSerializedProperties: 0 - m_ValidKeywords: [] - m_InvalidKeywords: [] - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_LockedProperties: - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Ints: [] - m_Floats: - - _ColorMask: 15 - - _Stencil: 0 - - _StencilComp: 8 - - _StencilOp: 0 - - _StencilReadMask: 255 - - _StencilWriteMask: 255 - - _UseUIAlphaClip: 0 - m_Colors: - - _halfSize: {r: 5, g: 13.05, b: 0, a: 0} - - _r: {r: 5, g: 5, b: 0, a: 0} - - _rect2props: {r: 0, g: -2.500002, b: 10.995511, a: 10.995511} - m_BuildTextureStacks: [] --- !u!1 &926053097 GameObject: m_ObjectHideFlags: 0 @@ -2227,7 +2168,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 553111349} + m_Material: {fileID: 1318321551} m_Color: {r: 0.76862746, g: 0.34901962, b: 0.24313726, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} @@ -2250,74 +2191,47 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 954712142} m_CullTransparentMesh: 1 ---- !u!1 &1012036658 -GameObject: +--- !u!21 &1008385119 +Material: + serializedVersion: 8 m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1012036659} - - component: {fileID: 1012036661} - - component: {fileID: 1012036660} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1012036659 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1012036658} - serializedVersion: 2 - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -960, y: -540, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1361712799} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1012036660 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1012036658} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} - m_Name: - m_EditorClassIdentifier: - m_SendPointerHoverToParent: 1 - m_HorizontalAxis: Horizontal - m_VerticalAxis: Vertical - m_SubmitButton: Submit - m_CancelButton: Cancel - m_InputActionsPerSecond: 10 - m_RepeatDelay: 0.5 - m_ForceModuleActive: 0 ---- !u!114 &1012036661 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1012036658} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} - m_Name: - m_EditorClassIdentifier: - m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 - m_DragThreshold: 10 + m_Name: UI/RoundedCorners/IndependentRoundedCorners + m_Shader: {fileID: 4800000, guid: d3beb88e61f88ca4393acdefb005fa70, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _ColorMask: 15 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _UseUIAlphaClip: 0 + m_Colors: + - _halfSize: {r: 5, g: 13.05, b: 0, a: 0} + - _r: {r: 5, g: 5, b: 0, a: 0} + - _rect2props: {r: 0, g: -2.500002, b: 10.995511, a: 10.995511} + m_BuildTextureStacks: [] --- !u!1 &1023572425 GameObject: m_ObjectHideFlags: 0 @@ -2453,6 +2367,47 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!21 &1031704740 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: UI/RoundedCorners/IndependentRoundedCorners + m_Shader: {fileID: 4800000, guid: d3beb88e61f88ca4393acdefb005fa70, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _ColorMask: 15 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _UseUIAlphaClip: 0 + m_Colors: + - _halfSize: {r: 5, g: 13.05, b: 0, a: 0} + - _r: {r: 0, g: 0, b: 5, a: 5} + - _rect2props: {r: 0.00000047683716, g: 2.4999986, b: 10.995511, a: 10.995511} + m_BuildTextureStacks: [] --- !u!1 &1072290691 GameObject: m_ObjectHideFlags: 0 @@ -2709,7 +2664,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 1775254820} + m_Material: {fileID: 261155270} m_Color: {r: 0.83137256, g: 0.6901961, b: 0.654902, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} @@ -2798,7 +2753,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 381726217} + m_Material: {fileID: 1857030066} m_Color: {r: 0.90588236, g: 0.78431374, b: 0.78431374, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} @@ -2966,12 +2921,139 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1254340705} m_CullTransparentMesh: 1 +--- !u!1 &1255340475 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1255340479} + - component: {fileID: 1255340478} + - component: {fileID: 1255340476} + - component: {fileID: 1255340477} + m_Layer: 5 + m_Name: CloseTrigger + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1255340476 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1255340475} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0b148fe25e99eb48b9724523833bab1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Delegates: [] +--- !u!114 &1255340477 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1255340475} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Texture: {fileID: 0} + m_UVRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 +--- !u!222 &1255340478 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1255340475} + m_CullTransparentMesh: 1 +--- !u!224 &1255340479 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1255340475} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1361712799} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0.36008} + m_SizeDelta: {x: 557.6676, y: 1080.7} + m_Pivot: {x: 0.5, y: 0.5} --- !u!4 &1287631730 stripped Transform: m_CorrespondingSourceObject: {fileID: 2739991145043243501, guid: 0c13e24f92c86f84a85c76e0bca22830, type: 3} m_PrefabInstance: {fileID: 1625022535} m_PrefabAsset: {fileID: 0} +--- !u!21 &1318321551 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: UI/RoundedCorners/IndependentRoundedCorners + m_Shader: {fileID: 4800000, guid: d3beb88e61f88ca4393acdefb005fa70, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _ColorMask: 15 + - _Stencil: 0 + - _StencilComp: 8 + - _StencilOp: 0 + - _StencilReadMask: 255 + - _StencilWriteMask: 255 + - _UseUIAlphaClip: 0 + m_Colors: + - _halfSize: {r: 36.5705, g: 37.7215, b: 0, a: 0} + - _r: {r: 40, g: 0, b: 0, a: 40} + - _rect2props: {r: 20, g: -0.0000076293945, b: 38.390244, a: 38.390244} + m_BuildTextureStacks: [] --- !u!1 &1325887242 GameObject: m_ObjectHideFlags: 0 @@ -2985,6 +3067,7 @@ GameObject: - component: {fileID: 1325887246} - component: {fileID: 1325887245} - component: {fileID: 1325887244} + - component: {fileID: 1325887248} m_Layer: 5 m_Name: UI Border m_TagString: Untagged @@ -3062,7 +3145,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 1726464744} + m_Material: {fileID: 687683564} m_Color: {r: 0.76729554, g: 0.34738284, b: 0.24370071, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} @@ -3085,6 +3168,19 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1325887242} m_CullTransparentMesh: 1 +--- !u!114 &1325887248 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1325887242} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0b148fe25e99eb48b9724523833bab1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Delegates: [] --- !u!1 &1331444962 GameObject: m_ObjectHideFlags: 0 @@ -3307,6 +3403,7 @@ GameObject: - component: {fileID: 1361712797} - component: {fileID: 1361712796} - component: {fileID: 1361712795} + - component: {fileID: 1361712800} m_Layer: 5 m_Name: Canvas m_TagString: Untagged @@ -3388,8 +3485,8 @@ Canvas: m_GameObject: {fileID: 1361712794} m_Enabled: 1 serializedVersion: 3 - m_RenderMode: 1 - m_Camera: {fileID: 0} + m_RenderMode: 0 + m_Camera: {fileID: 1508047064} m_PlaneDistance: 100 m_PixelPerfect: 0 m_ReceivesEvents: 1 @@ -3414,10 +3511,10 @@ RectTransform: m_LocalScale: {x: 0, y: 0, z: 0} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 1012036659} + - {fileID: 217430506} + - {fileID: 1255340479} - {fileID: 1325887243} - - {fileID: 455871648} - - {fileID: 1458184089} + - {fileID: 1905297351} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} @@ -3425,6 +3522,21 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0, y: 0} +--- !u!114 &1361712800 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1361712794} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ff219968359ff3a4490aea564d194887, type: 3} + m_Name: + m_EditorClassIdentifier: + anim: {fileID: 1325887244} + OpenerTrigger: {fileID: 217430507} + CloseTrigger: {fileID: 1255340476} --- !u!1 &1414423272 GameObject: m_ObjectHideFlags: 0 @@ -3614,108 +3726,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1435538639} m_CullTransparentMesh: 1 ---- !u!1 &1458184088 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1458184089} - - component: {fileID: 1458184091} - - component: {fileID: 1458184090} - m_Layer: 5 - m_Name: CloseUITrigger (1) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1458184089 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1458184088} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0.49602905, y: 0.10052444, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1361712799} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 937, y: 492} - m_SizeDelta: {x: 100, y: 100} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1458184090 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1458184088} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ff219968359ff3a4490aea564d194887, type: 3} - m_Name: - m_EditorClassIdentifier: - anim: {fileID: 1325887244} - animationCall: Open - activateGo: {fileID: 455871645} - deactivateSelf: 0 - affectedObj: {fileID: 0} - count: 1 - maxCount: 2 - currentCount: 0 ---- !u!61 &1458184091 -BoxCollider2D: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1458184088} - m_Enabled: 1 - m_Density: 1 - m_Material: {fileID: 0} - m_IncludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_ExcludeLayers: - serializedVersion: 2 - m_Bits: 0 - m_LayerOverridePriority: 0 - m_ForceSendLayers: - serializedVersion: 2 - m_Bits: 4294967295 - m_ForceReceiveLayers: - serializedVersion: 2 - m_Bits: 4294967295 - m_ContactCaptureLayers: - serializedVersion: 2 - m_Bits: 4294967295 - m_CallbackLayers: - serializedVersion: 2 - m_Bits: 4294967295 - m_IsTrigger: 1 - m_UsedByEffector: 0 - m_UsedByComposite: 0 - m_Offset: {x: -101.62274, y: -167.50247} - m_SpriteTilingProperty: - border: {x: 0, y: 0, z: 0, w: 0} - pivot: {x: 0, y: 0} - oldSize: {x: 0, y: 0} - newSize: {x: 0, y: 0} - adaptiveTilingThreshold: 0 - drawMode: 0 - adaptiveTiling: 0 - m_AutoTiling: 0 - serializedVersion: 2 - m_Size: {x: 303.24536, y: 1435.0049} - m_EdgeRadius: 0 --- !u!1001 &1472549667 PrefabInstance: m_ObjectHideFlags: 0 @@ -3918,7 +3928,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 2123466984} + m_Material: {fileID: 1726352763} m_Color: {r: 0.8301887, g: 0.6912864, b: 0.6552747, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} @@ -4332,7 +4342,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 1619095144} + m_Material: {fileID: 654460998} m_Color: {r: 0.9056604, g: 0.78319687, b: 0.78319687, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} @@ -4355,47 +4365,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1615413019} m_CullTransparentMesh: 1 ---- !u!21 &1619095144 -Material: - serializedVersion: 8 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: UI/RoundedCorners/IndependentRoundedCorners - m_Shader: {fileID: 4800000, guid: d3beb88e61f88ca4393acdefb005fa70, type: 3} - m_Parent: {fileID: 0} - m_ModifiedSerializedProperties: 0 - m_ValidKeywords: [] - m_InvalidKeywords: [] - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_LockedProperties: - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Ints: [] - m_Floats: - - _ColorMask: 15 - - _Stencil: 0 - - _StencilComp: 8 - - _StencilOp: 0 - - _StencilReadMask: 255 - - _StencilWriteMask: 255 - - _UseUIAlphaClip: 0 - m_Colors: - - _halfSize: {r: 97.85, g: 477.754, b: 0, a: 0} - - _r: {r: 0, g: 0, b: 0, a: 40} - - _rect2props: {r: 10, g: 9.999939, b: 407.01352, a: 392.87137} - m_BuildTextureStacks: [] --- !u!1001 &1625022535 PrefabInstance: m_ObjectHideFlags: 0 @@ -4734,7 +4703,7 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1675354854} m_CullTransparentMesh: 1 ---- !u!21 &1726464744 +--- !u!21 &1726352763 Material: serializedVersion: 8 m_ObjectHideFlags: 0 @@ -4771,9 +4740,9 @@ Material: - _StencilWriteMask: 255 - _UseUIAlphaClip: 0 m_Colors: - - _halfSize: {r: 360, g: 550, b: 0, a: 0} - - _r: {r: 0, g: 59.4, b: 59.4, a: 59.4} - - _rect2props: {r: -14.850006, g: 14.849915, b: 622.4661, a: 601.4651} + - _halfSize: {r: 340.1145, g: 535, b: 0, a: 0} + - _r: {r: 0, g: 0, b: 0, a: 40} + - _rect2props: {r: 10.0000305, g: 9.999878, b: 618.79944, a: 604.6573} m_BuildTextureStacks: [] --- !u!1001 &1767770602 PrefabInstance: @@ -4910,7 +4879,7 @@ GameObject: type: 3} m_PrefabInstance: {fileID: 1767770602} m_PrefabAsset: {fileID: 0} ---- !u!21 &1775254820 +--- !u!21 &1857030066 Material: serializedVersion: 8 m_ObjectHideFlags: 0 @@ -4947,10 +4916,78 @@ Material: - _StencilWriteMask: 255 - _UseUIAlphaClip: 0 m_Colors: - - _halfSize: {r: 35.4485, g: 38.0555, b: 0, a: 0} - - _r: {r: 40, g: 0, b: 0, a: 40} - - _rect2props: {r: 20.000002, g: -0.0000038146973, b: 37.833046, a: 37.833046} + - _halfSize: {r: 97.8265, g: 37.763, b: 0, a: 0} + - _r: {r: 30.96, g: 0, b: 0, a: 0} + - _rect2props: {r: 7.7400208, g: -7.7400017, b: 84.93025, a: 95.87626} m_BuildTextureStacks: [] +--- !u!1 &1905297350 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1905297351} + - component: {fileID: 1905297353} + - component: {fileID: 1905297352} + m_Layer: 5 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1905297351 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1905297350} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1361712799} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1905297352 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1905297350} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} + m_Name: + m_EditorClassIdentifier: + m_SendPointerHoverToParent: 1 + m_HorizontalAxis: Horizontal + m_VerticalAxis: Vertical + m_SubmitButton: Submit + m_CancelButton: Cancel + m_InputActionsPerSecond: 10 + m_RepeatDelay: 0.5 + m_ForceModuleActive: 0 +--- !u!114 &1905297353 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1905297350} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_FirstSelected: {fileID: 0} + m_sendNavigationEvents: 1 + m_DragThreshold: 10 --- !u!1 &1980823141 GameObject: m_ObjectHideFlags: 0 @@ -5088,7 +5125,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 728463258} + m_Material: {fileID: 1031704740} m_Color: {r: 0.9811321, g: 0.8669752, b: 0.8669752, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} @@ -5498,47 +5535,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2107754074} m_CullTransparentMesh: 1 ---- !u!21 &2123466984 -Material: - serializedVersion: 8 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: UI/RoundedCorners/IndependentRoundedCorners - m_Shader: {fileID: 4800000, guid: d3beb88e61f88ca4393acdefb005fa70, type: 3} - m_Parent: {fileID: 0} - m_ModifiedSerializedProperties: 0 - m_ValidKeywords: [] - m_InvalidKeywords: [] - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_LockedProperties: - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Ints: [] - m_Floats: - - _ColorMask: 15 - - _Stencil: 0 - - _StencilComp: 8 - - _StencilOp: 0 - - _StencilReadMask: 255 - - _StencilWriteMask: 255 - - _UseUIAlphaClip: 0 - m_Colors: - - _halfSize: {r: 340.1145, g: 535, b: 0, a: 0} - - _r: {r: 0, g: 0, b: 0, a: 40} - - _rect2props: {r: 10.0000305, g: 9.999878, b: 618.79944, a: 604.6573} - m_BuildTextureStacks: [] --- !u!1 &2132491020 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/TowerTest.unity b/Assets/Scenes/TowerTest.unity index b61d306..c0c3ce1 100644 --- a/Assets/Scenes/TowerTest.unity +++ b/Assets/Scenes/TowerTest.unity @@ -576,11 +576,86 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 0} m_Modifications: + - target: {fileID: 4140468893953896691, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4847760131872950732, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalPosition.y + value: 2.5 + objectReference: {fileID: 0} + - target: {fileID: 4847760131872950732, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalPosition.z + value: -3 + objectReference: {fileID: 0} + - target: {fileID: 4847760131872950732, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalRotation.y + value: -0.000000016282542 + objectReference: {fileID: 0} + - target: {fileID: 4847760131872950732, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalRotation.z + value: 0.0000000055622356 + objectReference: {fileID: 0} + - target: {fileID: 6128688024210661095, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalPosition.y + value: 2.5 + objectReference: {fileID: 0} + - target: {fileID: 6128688024210661095, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalPosition.z + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 6128688024210661095, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalRotation.w + value: -3e-45 + objectReference: {fileID: 0} + - target: {fileID: 6128688024210661095, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalRotation.x + value: -1e-45 + objectReference: {fileID: 0} + - target: {fileID: 6128688024210661095, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalRotation.y + value: 0.9402716 + objectReference: {fileID: 0} + - target: {fileID: 6128688024210661095, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalRotation.z + value: -0.34042525 + objectReference: {fileID: 0} - target: {fileID: 8488737342646939416, guid: 9415cb10a1bd579269301ca4f61a1554, type: 3} propertyPath: m_Name value: Turret objectReference: {fileID: 0} + - target: {fileID: 8717774532810144392, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalPosition.y + value: 2.5 + objectReference: {fileID: 0} + - target: {fileID: 8717774532810144392, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalPosition.z + value: -3 + objectReference: {fileID: 0} + - target: {fileID: 8717774532810144392, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalRotation.y + value: 0.000000023165901 + objectReference: {fileID: 0} + - target: {fileID: 8717774532810144392, guid: 9415cb10a1bd579269301ca4f61a1554, + type: 3} + propertyPath: m_LocalRotation.z + value: -0.0000000074471513 + objectReference: {fileID: 0} - target: {fileID: 9116936080776508834, guid: 9415cb10a1bd579269301ca4f61a1554, type: 3} propertyPath: m_LocalPosition.x @@ -589,7 +664,7 @@ PrefabInstance: - target: {fileID: 9116936080776508834, guid: 9415cb10a1bd579269301ca4f61a1554, type: 3} propertyPath: m_LocalPosition.y - value: 0.84 + value: 0.839 objectReference: {fileID: 0} - target: {fileID: 9116936080776508834, guid: 9415cb10a1bd579269301ca4f61a1554, type: 3} @@ -631,7 +706,8 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - m_RemovedComponents: [] + m_RemovedComponents: + - {fileID: 745531677110546750, guid: 9415cb10a1bd579269301ca4f61a1554, type: 3} m_RemovedGameObjects: [] m_AddedGameObjects: [] m_AddedComponents: [] @@ -896,6 +972,74 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1519212182 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1519212185} + - component: {fileID: 1519212184} + - component: {fileID: 1519212183} + m_Layer: 0 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1519212183 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1519212182} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} + m_Name: + m_EditorClassIdentifier: + m_SendPointerHoverToParent: 1 + m_HorizontalAxis: Horizontal + m_VerticalAxis: Vertical + m_SubmitButton: Submit + m_CancelButton: Cancel + m_InputActionsPerSecond: 10 + m_RepeatDelay: 0.5 + m_ForceModuleActive: 0 +--- !u!114 &1519212184 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1519212182} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_FirstSelected: {fileID: 0} + m_sendNavigationEvents: 1 + m_DragThreshold: 10 +--- !u!4 &1519212185 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1519212182} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1621186629 GameObject: m_ObjectHideFlags: 0 @@ -1069,6 +1213,11 @@ PrefabInstance: propertyPath: m_LocalRotation.z value: -0.10982757 objectReference: {fileID: 0} + - target: {fileID: 3255403189825384754, guid: fd9f9b61c0ebb324ebc9f929e26706bc, + type: 3} + propertyPath: field of view + value: 60 + objectReference: {fileID: 0} - target: {fileID: 3665490202611795451, guid: fd9f9b61c0ebb324ebc9f929e26706bc, type: 3} propertyPath: m_LocalPosition.x @@ -1147,7 +1296,7 @@ PrefabInstance: - target: {fileID: 7348612162646443967, guid: fd9f9b61c0ebb324ebc9f929e26706bc, type: 3} propertyPath: m_LocalRotation.w - value: -0.13805284 + value: -0.1380528 objectReference: {fileID: 0} - target: {fileID: 7348612162646443967, guid: fd9f9b61c0ebb324ebc9f929e26706bc, type: 3} @@ -1162,7 +1311,7 @@ PrefabInstance: - target: {fileID: 7348612162646443967, guid: fd9f9b61c0ebb324ebc9f929e26706bc, type: 3} propertyPath: m_LocalRotation.z - value: -0.13815573 + value: -0.13815574 objectReference: {fileID: 0} - target: {fileID: 8882344377078016156, guid: fd9f9b61c0ebb324ebc9f929e26706bc, type: 3} @@ -1444,3 +1593,4 @@ SceneRoots: - {fileID: 1732242001} - {fileID: 504816165} - {fileID: 1395991987} + - {fileID: 1519212185} diff --git a/Assets/Scripts/Manager/AudioLibraryObject.cs b/Assets/Scripts/Manager/AudioLibraryObject.cs new file mode 100644 index 0000000..556a284 --- /dev/null +++ b/Assets/Scripts/Manager/AudioLibraryObject.cs @@ -0,0 +1,10 @@ +using System.Collections; +using System.Collections.Generic; +using System.IO.Enumeration; +using UnityEngine; + +[CreateAssetMenu(fileName = "New AudioLibrary", menuName = "ZUtility/AudioLibrary")] +public class AudioLibraryObject : ScriptableObject +{ + public AudioClip[] Clips; +} diff --git a/Assets/Scripts/Manager/AudioLibraryObject.cs.meta b/Assets/Scripts/Manager/AudioLibraryObject.cs.meta new file mode 100644 index 0000000..4fcd9d0 --- /dev/null +++ b/Assets/Scripts/Manager/AudioLibraryObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3bbffcd63584e8040b9a8db3b8d51737 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Manager/AudioManager.cs b/Assets/Scripts/Manager/AudioManager.cs new file mode 100644 index 0000000..74af36f --- /dev/null +++ b/Assets/Scripts/Manager/AudioManager.cs @@ -0,0 +1,137 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using Unity.VisualScripting; +using UnityEngine; + +public class AudioManager : MonoBehaviour +{ + public static AudioManager Instance; + public AudioLibraryObject audioLibrary; + + + private void OnEnable() + { + if (Instance is null) + { + Instance = this; + // TODO: manager itself should not handle this + // DontDestroyOnLoad(this); + } + else + { + Destroy(Instance); + Instance = this; + } + } + + private void OnDisable() + { + Instance = null; + } + + public static AudioClip FindAudioClip(string nameOfClip) + { + return Instance.audioLibrary.Clips.First(x => x.name == nameOfClip); + } + + public static AudioSource PlaySound(AudioClip clip, Vector3 sourcePos, bool manuallyHandle = false, bool is3D = true, bool loop = false, bool fadeIn = false) + { + return PlaySoundInternal(clip, sourcePos, manuallyHandle, is3D, loop, fadeIn); + } + + public static AudioSource PlaySound(string nameOfClip, Vector3 sourcePos, bool manuallyHandle = false, bool is3D = true, bool loop = false, bool fadeIn = false) + { + AudioClip clip = FindAudioClip(nameOfClip); + return PlaySoundInternal(clip, sourcePos, manuallyHandle, is3D, loop, fadeIn); + } + + private static AudioSource PlaySoundInternal(AudioClip clip, Vector3 sourcePos, bool manuallyHandle, bool is3D, bool loop, bool fadeIn) + { + if (Instance == null) + { + Debug.LogWarning("AudioManager has not been initialized. Please initialize it before use."); + return null; + } + + var sourceObject = new GameObject("SoundSource"); + var audioSource = sourceObject.AddComponent(); + audioSource.loop = loop; + audioSource.clip = clip; + sourceObject.transform.position = sourcePos; + sourceObject.transform.parent = Instance.transform; + + if (is3D) + { + audioSource.rolloffMode = AudioRolloffMode.Linear; + audioSource.spatialBlend = 1f; + } + + if (!manuallyHandle) + Instance.StartCoroutine(Instance.StartSound(audioSource, fadeIn)); + return audioSource; + } + + public static List AliveSources = new List(); + IEnumerator StartSound(AudioSource audioSource, bool fadeIn = false) + { + AliveSources.Add(new SoundSource(audioSource)); + + if (fadeIn) + { + audioSource.volume = 0; + StartCoroutine(StartMusicFadeIn(audioSource)); + } + + + audioSource.Play(); + yield return new WaitUntil(() => audioSource.gameObject == null || !audioSource.isPlaying); + + try + { + Destroy(audioSource.gameObject); + } + catch (SystemException err) + { + + } + } + + public IEnumerator StartMusicFadeIn(AudioSource AS) + { + while (true) + { + if (AS.volume >= 1) + { + break; + } + AS.volume += 0.01f; + yield return new WaitForSecondsRealtime(0.05f); + } + } + + public void StopAllAudio() + { + StopAllCoroutines(); + foreach (SoundSource item in AliveSources) + { + if (item == null || item.source == null) continue; + + item.source.Stop(); + Destroy(item.source.gameObject); + } + + AliveSources.Clear(); + } +} + +public class SoundSource +{ + public string Id { get; set; } + public AudioSource source { get; set; } + public SoundSource(AudioSource originalSource) + { + source = originalSource; + } +} diff --git a/Assets/Scripts/Manager/AudioManager.cs.meta b/Assets/Scripts/Manager/AudioManager.cs.meta new file mode 100644 index 0000000..3935ccd --- /dev/null +++ b/Assets/Scripts/Manager/AudioManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 36c44df45a33eca4285d258763a7b018 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Manager/GameManager.cs b/Assets/Scripts/Manager/GameManager.cs index f14a12b..5a9132e 100644 --- a/Assets/Scripts/Manager/GameManager.cs +++ b/Assets/Scripts/Manager/GameManager.cs @@ -1,3 +1,4 @@ +using System; using UnityEngine; public class GameManager : MonoBehaviour @@ -8,8 +9,6 @@ public class GameManager : MonoBehaviour public bool IsBuildMode = false; private Tower selectedTower; - public TowerInfo ShopSelectedTower; - public Tower SelectedTower { get { return selectedTower; } set { if (selectedTower != null) selectedTower.TowerSelected(false); @@ -25,4 +24,26 @@ public class GameManager : MonoBehaviour Destroy(Instance); Instance = this; } + + private void OnEnable() + { + MoneyManager.OnShopSelected += m_OnTowerShopSelected; + TowerPlacementManager.OnTowerPlaced += m_finishBuildmode; + } + + private void OnDisable() + { + MoneyManager.OnShopSelected -= m_OnTowerShopSelected; + TowerPlacementManager.OnTowerPlaced -= m_finishBuildmode; + } + + private void m_OnTowerShopSelected(TowerInfo info) + { + IsBuildMode = true; + } + + private void m_finishBuildmode(TowerInfo info) + { + IsBuildMode = false; + } } diff --git a/Assets/Scripts/Manager/MoneyManager.cs b/Assets/Scripts/Manager/MoneyManager.cs index 1cb795a..a1ee641 100644 --- a/Assets/Scripts/Manager/MoneyManager.cs +++ b/Assets/Scripts/Manager/MoneyManager.cs @@ -1,3 +1,4 @@ +using System; using System.Collections; using System.Collections.Generic; using TMPro; @@ -11,6 +12,11 @@ public class MoneyManager : MonoBehaviour public GameObject[] ShopButtons; public TMP_Text[] MoneyTexts; + /// + /// Invoked when player selects tower from shop + /// + public static event Action OnShopSelected; + private void OnEnable() { for (int i = 0; i < ShopButtons.Length; i++) @@ -35,7 +41,6 @@ public class MoneyManager : MonoBehaviour { Assert.AreNotEqual(index, -1, "Shop button not init-ed with index"); - GameManager.Instance.ShopSelectedTower = towerCollection.Towers[index]; - GameManager.Instance.IsBuildMode = true; + OnShopSelected?.Invoke(towerCollection.Towers[index]); } } diff --git a/Assets/Scripts/PlacementSystem/CameraSlotClickDetect.cs b/Assets/Scripts/PlacementSystem/CameraSlotClickDetect.cs index 4388d38..676b0fb 100644 --- a/Assets/Scripts/PlacementSystem/CameraSlotClickDetect.cs +++ b/Assets/Scripts/PlacementSystem/CameraSlotClickDetect.cs @@ -1,5 +1,4 @@ -using System.Collections; -using System.Collections.Generic; +using Cinemachine; using UnityEngine; public class CameraSlotClickDetect : MonoBehaviour @@ -32,6 +31,8 @@ public class CameraSlotClickDetect : MonoBehaviour if (tower != null) { GameManager.Instance.SelectedTower = tower; + + } } else if (Physics.Raycast(ray, out hit, Mathf.Infinity, layerMask)) diff --git a/Assets/Scripts/PlacementSystem/PlacementManager.cs b/Assets/Scripts/PlacementSystem/PlacementManager.cs index 92f7da6..f7b07d1 100644 --- a/Assets/Scripts/PlacementSystem/PlacementManager.cs +++ b/Assets/Scripts/PlacementSystem/PlacementManager.cs @@ -8,26 +8,28 @@ using UnityEngine; public class TowerPlacementManager : MonoBehaviour { - /// - /// Sender - /// + public static TowerPlacementManager Instance; + + // Spawning grid events public static event Action OnSpawnGridRequested; public static event Action OnGridDeleteRequested; - public static TowerPlacementManager Instance; + + // Placing tower + public static event Action OnTowerPlaced; + [Header("Debug")] [SerializeField] private bool RebuildGrid = false; // Section: Mouse private SlotManager CurrentSelectedSlot; - private SlotManager CurrentHovered; // Not implemented private int CurrentRotation = 0; // 0, 1, 2, 3 private GameObject SilhouettedObject; + private TowerInfo SelectedTowerInfo; - // Section: Debug - public GameObject DebugTowerPrefab; + private GameObject SelectedTowerPrefab => SelectedTowerInfo.prefab; private void Start() { @@ -59,12 +61,27 @@ public class TowerPlacementManager : MonoBehaviour } } + private void OnEnable() + { + MoneyManager.OnShopSelected += OnShopSelected; + } + + private void OnDisable() + { + MoneyManager.OnShopSelected -= OnShopSelected; + } + + private void OnShopSelected(TowerInfo info) + { + SelectedTowerInfo = info; + } + public void OnSlotClicked(SlotManager slot, GridManager grid, int x, int y) { slot.gameObject.GetComponentInChildren().material.color = Color.blue; OnSelectSlot(slot); - SpawnTowerAtSelected(DebugTowerPrefab); + SpawnTowerAtSelected(SelectedTowerPrefab); } // Called when a slot is selected @@ -94,13 +111,13 @@ public class TowerPlacementManager : MonoBehaviour public void OnSlotHovered(SlotManager slot, GridManager grid, int x, int y) { if (SilhouettedObject == null) - SilhouettedObject = ToSilhouette(DebugTowerPrefab); + SilhouettedObject = ToSilhouette(SelectedTowerPrefab); // Sets tower rotation Quaternion newRotation = Quaternion.AngleAxis(CurrentRotation * 90f, transform.up); SilhouettedObject.transform.localRotation = newRotation; - Vector3 offset = DebugTowerPrefab.transform.position; + Vector3 offset = SelectedTowerPrefab.transform.position; //SilhouettedObject.SetActive(true); SilhouettedObject.transform.parent = slot.TowerSpawnPoint.transform; diff --git a/Assets/Scripts/Tower/Tower.cs b/Assets/Scripts/Tower/Tower.cs index e7386f5..d6d582b 100644 --- a/Assets/Scripts/Tower/Tower.cs +++ b/Assets/Scripts/Tower/Tower.cs @@ -11,6 +11,8 @@ public abstract class Tower : MonoBehaviour protected HealthComponent healthComp; protected Outline outline; + protected Camera mainCam; + // Getters public virtual void TowerSelected(bool selected) { @@ -26,6 +28,8 @@ public abstract class Tower : MonoBehaviour outline = GetComponent(); Assert.IsNotNull(healthComp); Assert.IsNotNull(outline); + + mainCam = Camera.main; } protected virtual void Start() @@ -38,6 +42,7 @@ public abstract class Tower : MonoBehaviour protected virtual void Update() { + selectedUI.transform.LookAt(mainCam.transform.position); } protected virtual void FixedUpdate() diff --git a/Assets/Scripts/UI/UIManager.cs b/Assets/Scripts/UI/UIManager.cs index c9300dc..6954367 100644 --- a/Assets/Scripts/UI/UIManager.cs +++ b/Assets/Scripts/UI/UIManager.cs @@ -1,53 +1,72 @@ +using System; +using UnityEditor.PackageManager; using UnityEngine; +using UnityEngine.EventSystems; public class UIManager : MonoBehaviour { - public Animator anim; - public string animationCall; + [SerializeField] private Animator anim; + [SerializeField] private EventTrigger OpenerTrigger; + [SerializeField] private EventTrigger CloseTrigger; - public GameObject activateGo; - public bool deactivateSelf; + private bool OpenerIsHovered = false; + private bool CloseIsHovered = false; - public UIManager affectedObj; + private bool CurrentShopState = false; - public bool count; - - public int maxCount = 1; - public int currentCount = 0; - - - private void Awake() + private void OnEnable() { - if(count) - currentCount = 0; - } - public void OnMouseEnter() - { - anim.SetTrigger(animationCall); + // Subscribe to PointerEnter event + EventTrigger.Entry pointerOpenerEnter = new EventTrigger.Entry(); + pointerOpenerEnter.eventID = EventTriggerType.PointerEnter; + pointerOpenerEnter.callback.AddListener((data) => { OnOpenerEnter((PointerEventData)data); }); + OpenerTrigger.triggers.Add(pointerOpenerEnter); - if (activateGo != null) - activateGo.SetActive(true); + // Subscribe to PointerExit event + EventTrigger.Entry pointerOpenerExit = new EventTrigger.Entry(); + pointerOpenerExit.eventID = EventTriggerType.PointerExit; + pointerOpenerExit.callback.AddListener((data) => { OnOpenerExit((PointerEventData)data); }); + OpenerTrigger.triggers.Add(pointerOpenerExit); - if (deactivateSelf) - { - gameObject.SetActive(false); - if (count) - ResetCount(); - } - //gameObject.SetActive(false); + // Subscribe to PointerEnter event + EventTrigger.Entry pointerCloseTriggerEnter = new EventTrigger.Entry(); + pointerCloseTriggerEnter.eventID = EventTriggerType.PointerEnter; + pointerCloseTriggerEnter.callback.AddListener((data) => { OnCloseTriggerEnter((PointerEventData)data); }); + CloseTrigger.triggers.Add(pointerCloseTriggerEnter); - if (count) - currentCount++; - if (currentCount >= maxCount && count) - gameObject.SetActive(false); - - if (affectedObj != null && affectedObj.currentCount >= affectedObj.maxCount && affectedObj.count) - ResetCount(); - } - public void ResetCount() - { - affectedObj.gameObject.SetActive(true); - affectedObj.currentCount = 0; + // Subscribe to PointerExit event + EventTrigger.Entry pointerCloseTriggerExit = new EventTrigger.Entry(); + pointerCloseTriggerExit.eventID = EventTriggerType.PointerExit; + pointerCloseTriggerExit.callback.AddListener((data) => { OnCloseTriggerExit((PointerEventData)data); }); + CloseTrigger.triggers.Add(pointerCloseTriggerExit); } + private void OnCloseTriggerEnter(PointerEventData data) + { + CloseIsHovered = true; + UpdateShopState(); + } + + private void OnCloseTriggerExit(PointerEventData data) + { + CloseIsHovered = false; + UpdateShopState(); + } + + private void OnOpenerEnter(PointerEventData data) + { + OpenerIsHovered = true; + UpdateShopState(); + } + private void OnOpenerExit(PointerEventData data) + { + OpenerIsHovered = false; + UpdateShopState(); + } + + private void UpdateShopState() + { + CurrentShopState = (CurrentShopState && !CloseIsHovered) || (OpenerIsHovered && !CloseIsHovered); + anim.SetBool("IsOpen", CurrentShopState); + } } diff --git a/Assets/Scripts/Utilities/CanvasCameraSetter.cs b/Assets/Scripts/Utilities/CanvasCameraSetter.cs new file mode 100644 index 0000000..55373b6 --- /dev/null +++ b/Assets/Scripts/Utilities/CanvasCameraSetter.cs @@ -0,0 +1,11 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class CanvasCameraSetter : MonoBehaviour +{ + private void Awake() + { + GetComponent().worldCamera = Camera.main; + } +} diff --git a/Assets/Scripts/Utilities/CanvasCameraSetter.cs.meta b/Assets/Scripts/Utilities/CanvasCameraSetter.cs.meta new file mode 100644 index 0000000..0bdc2e5 --- /dev/null +++ b/Assets/Scripts/Utilities/CanvasCameraSetter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a3cef6d37caa7c467b68369285a9ac2a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Utilities/TowerDeleter.cs b/Assets/Scripts/Utilities/TowerDeleter.cs new file mode 100644 index 0000000..24dd353 --- /dev/null +++ b/Assets/Scripts/Utilities/TowerDeleter.cs @@ -0,0 +1,10 @@ +using UnityEngine; + +public class TowerDeleter : MonoBehaviour +{ + public void Delete() + { + Tower tower = transform.root.GetComponentInChildren(); + Destroy(tower.gameObject); + } +} diff --git a/Assets/Scripts/Utilities/TowerDeleter.cs.meta b/Assets/Scripts/Utilities/TowerDeleter.cs.meta new file mode 100644 index 0000000..f7ff492 --- /dev/null +++ b/Assets/Scripts/Utilities/TowerDeleter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 56e3a423572a813999ef1a5b4d613178 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/trash.png b/Assets/Sprites/trash.png new file mode 100644 index 0000000..f7f08f1 Binary files /dev/null and b/Assets/Sprites/trash.png differ diff --git a/Assets/Sprites/trash.png.meta b/Assets/Sprites/trash.png.meta new file mode 100644 index 0000000..2e49a2f --- /dev/null +++ b/Assets/Sprites/trash.png.meta @@ -0,0 +1,127 @@ +fileFormatVersion: 2 +guid: 702eb809bfcc0b4c7b6222f4d72c5d63 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: