diff --git a/Assets/Resources/NPC/Dungeon/BattleWizard.prefab b/Assets/Resources/NPC/Dungeon/BattleWizard.prefab new file mode 100644 index 00000000..e63fff23 --- /dev/null +++ b/Assets/Resources/NPC/Dungeon/BattleWizard.prefab @@ -0,0 +1,270 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &8299560284626945632 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8299560284626945635} + - component: {fileID: 8299560284626945634} + - component: {fileID: 8299560284626945644} + - component: {fileID: 6510690144753172304} + - component: {fileID: 8299560284626945645} + - component: {fileID: 8299560284626945646} + - component: {fileID: 8552972087287136995} + - component: {fileID: 4951012252775454729} + - component: {fileID: 4951012252775454728} + - component: {fileID: 4951012252775454731} + m_Layer: 0 + m_Name: BattleWizard + m_TagString: Enemy + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &8299560284626945635 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8299560284626945632} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 3.6720886, z: 10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &8299560284626945634 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8299560284626945632} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 3 + m_Sprite: {fileID: 2429924255151692236, guid: a618c1a6d5f6e29438eeadfa55fcea33, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 1.0625, y: 1.75} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!50 &8299560284626945644 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8299560284626945632} + m_BodyType: 0 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 5 + m_LinearDrag: 1.5 + m_AngularDrag: 0.05 + m_GravityScale: 0 + m_Material: {fileID: 0} + m_Interpolate: 0 + m_SleepingMode: 1 + m_CollisionDetection: 0 + m_Constraints: 4 +--- !u!58 &6510690144753172304 +CircleCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8299560284626945632} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0, y: -0.1} + serializedVersion: 2 + m_Radius: 0.7 +--- !u!61 &8299560284626945645 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8299560284626945632} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0, y: -0.44218445} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0.5, y: 0.5} + oldSize: {x: 1.1875, y: 1.8125} + newSize: {x: 1.0625, y: 1.75} + adaptiveTilingThreshold: 0.5 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 1.0625, y: 0.7334442} + m_EdgeRadius: 0 +--- !u!95 &8299560284626945646 +Animator: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8299560284626945632} + m_Enabled: 1 + m_Avatar: {fileID: 0} + m_Controller: {fileID: 9100000, guid: 7d09ffbc6c0aa7c409b8da27c69433bd, type: 2} + m_CullingMode: 0 + m_UpdateMode: 0 + m_ApplyRootMotion: 0 + m_LinearVelocityBlending: 0 + m_StabilizeFeet: 0 + m_WarningMessage: + m_HasTransformHierarchy: 1 + m_AllowConstantClipSamplingOptimization: 1 + m_KeepAnimatorControllerStateOnDisable: 0 +--- !u!114 &8552972087287136995 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8299560284626945632} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d622984048644f87804ad1a3f20aa23a, type: 3} + m_Name: + m_EditorClassIdentifier: + speed: 2 + currentPosition: + GCost: 0 + hCost: 0 + walkable: 0 + worldPosition: {x: 0, y: 0, z: 0} + gridPosition: {x: 0, y: 0} + isChasing: 0 + point: {x: 0, y: 0, z: 0} + path: [] +--- !u!114 &4951012252775454729 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8299560284626945632} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 85ed5d06f443ff547aeb225e656c0e19, type: 3} + m_Name: + m_EditorClassIdentifier: + BattleState: 1 + defence: 0 + maxHealth: 45 + currentHealth: 0 + canTakeDamage: 1 + attackValue: 5 + attackingRadius: 1.3 + MinionRespowner: {fileID: 0} + SummonedMinionsCounter: 3 + KilledMinionsCounter: 0 + IsAfterSummoning: 0 + approaching: 0 + CurrentPoint: 0 + Points: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + TargetPosition: {x: 0, y: 0, z: 0} + hit: 0 + firstAttack: 0 + timerDmg: 0 + timeToWaitBeforeNextAttack: 1 + timerHit: 0 + timeToWaitBeforeNextHitFromPlayer: 0.55 + isPanelEnabled: 1 +--- !u!114 &4951012252775454728 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8299560284626945632} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a932b573f4bb557488543fea26124646, type: 3} + m_Name: + m_EditorClassIdentifier: + moveSpeed: 0 + enemyName: + maxHealth: {fileID: 0} + health: 0 + baseAttack: 0 + isKilled: 0 + MinionName: +--- !u!114 &4951012252775454731 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8299560284626945632} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a13ccc76cd22a814287fc3a36a9cac71, type: 3} + m_Name: + m_EditorClassIdentifier: + Name: + State: 1 diff --git a/Assets/Resources/NPC/Dungeon/BattleWizard.prefab.meta b/Assets/Resources/NPC/Dungeon/BattleWizard.prefab.meta new file mode 100644 index 00000000..6b994313 --- /dev/null +++ b/Assets/Resources/NPC/Dungeon/BattleWizard.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 1dd9a631d03d51f4792b21f682af311d +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Catacombs.unity b/Assets/Scenes/Catacombs.unity index 6fd7b6a1..9c065804 100644 --- a/Assets/Scenes/Catacombs.unity +++ b/Assets/Scenes/Catacombs.unity @@ -822,6 +822,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 215490326} + - component: {fileID: 215490327} m_Layer: 0 m_Name: Respowner IV m_TagString: Untagged @@ -844,6 +845,19 @@ Transform: m_Father: {fileID: 1797967006} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &215490327 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 215490325} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 --- !u!1001 &217609132 PrefabInstance: m_ObjectHideFlags: 0 @@ -995,6 +1009,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 281735111} + - component: {fileID: 281735112} m_Layer: 0 m_Name: Respowner V m_TagString: Untagged @@ -1017,6 +1032,19 @@ Transform: m_Father: {fileID: 1797967006} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &281735112 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 281735110} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 --- !u!1 &286103254 GameObject: m_ObjectHideFlags: 0 @@ -15872,6 +15900,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 833322047} + - component: {fileID: 833322048} m_Layer: 0 m_Name: Respowner III m_TagString: Untagged @@ -15894,6 +15923,19 @@ Transform: m_Father: {fileID: 1797967006} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &833322048 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 833322046} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 --- !u!1 &852779019 GameObject: m_ObjectHideFlags: 0 @@ -49810,6 +49852,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 1004268554} + - component: {fileID: 1004268555} m_Layer: 0 m_Name: Respowner II m_TagString: Untagged @@ -49832,6 +49875,19 @@ Transform: m_Father: {fileID: 1797967006} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1004268555 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1004268553} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 --- !u!1 &1017172187 GameObject: m_ObjectHideFlags: 0 @@ -50515,6 +50571,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 1108941935} + - component: {fileID: 1108941936} m_Layer: 0 m_Name: RespownerI VI m_TagString: Untagged @@ -50537,6 +50594,19 @@ Transform: m_Father: {fileID: 1797967006} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1108941936 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1108941934} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 --- !u!1001 &1114279571 PrefabInstance: m_ObjectHideFlags: 0 @@ -57909,6 +57979,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 2083033196} + - component: {fileID: 2083033197} m_Layer: 0 m_Name: Respowner I m_TagString: Untagged @@ -57931,6 +58002,19 @@ Transform: m_Father: {fileID: 1797967006} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &2083033197 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2083033195} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 --- !u!1 &2096156760 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/FirstLabirynthCave.unity b/Assets/Scenes/FirstLabirynthCave.unity index 1e6e679c..e8fee146 100644 --- a/Assets/Scenes/FirstLabirynthCave.unity +++ b/Assets/Scenes/FirstLabirynthCave.unity @@ -6349,6 +6349,40 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 16841862} m_CullTransparentMesh: 1 +--- !u!1 &22770814 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 22770815} + m_Layer: 0 + m_Name: WizardPoints + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &22770815 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 22770814} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 17.793322, y: 9.569919, z: 4752.9263} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1397886437} + - {fileID: 1106173633} + - {fileID: 1572966418} + m_Father: {fileID: 0} + m_RootOrder: 11 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &34028356 GameObject: m_ObjectHideFlags: 0 @@ -6913,6 +6947,37 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 106024591} m_CullTransparentMesh: 1 +--- !u!1 &135636477 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 135636478} + m_Layer: 0 + m_Name: Enemy + m_TagString: EnemyCollection + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &135636478 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 135636477} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 7.880188, y: 0.35018623, z: -0.051872663} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 15 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &161234065 GameObject: m_ObjectHideFlags: 0 @@ -7233,7 +7298,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 3 + m_RootOrder: 8 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &204680747 GameObject: @@ -7536,7 +7601,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 9 + m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &258173715 GameObject: @@ -8170,6 +8235,51 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 358499145} m_CullTransparentMesh: 1 +--- !u!1 &387648017 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 387648018} + - component: {fileID: 387648019} + m_Layer: 0 + m_Name: RespownerI VI + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &387648018 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 387648017} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 11.57, y: -6, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 910626183} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &387648019 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 387648017} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 --- !u!1 &393148138 GameObject: m_ObjectHideFlags: 0 @@ -13253,6 +13363,51 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 572003925} m_CullTransparentMesh: 1 +--- !u!1 &593642922 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 593642923} + - component: {fileID: 593642924} + m_Layer: 0 + m_Name: Respowner III + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &593642923 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 593642922} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 13.5, y: 9, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 910626183} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &593642924 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 593642922} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 --- !u!1 &628485145 GameObject: m_ObjectHideFlags: 0 @@ -13650,7 +13805,16 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1126efb434c50f446b49891f5584c786, type: 3} m_Name: m_EditorClassIdentifier: - ElementsToBuildOnSceneList: [] + ElementsToBuildOnSceneList: + - Key: 2 + Value: + EquippableItem: {fileID: 11400000, guid: 56c5c2b6450ca9e44bae4cf253354d38, type: 2} + - Key: 1 + Value: + EquippableItem: {fileID: 11400000, guid: 74bb221206536b94caf425820b9d626d, type: 2} + - Key: 0 + Value: + EquippableItem: {fileID: 11400000, guid: e76017225f130f3459860a42d4169494, type: 2} convertedData: [] --- !u!1 &718486685 GameObject: @@ -14154,6 +14318,51 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 745339690} m_CullTransparentMesh: 1 +--- !u!1 &759652002 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 759652003} + - component: {fileID: 759652004} + m_Layer: 0 + m_Name: Respowner IV + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &759652003 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 759652002} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 7.36, y: -1.75, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 910626183} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &759652004 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 759652002} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 --- !u!1 &766940968 GameObject: m_ObjectHideFlags: 0 @@ -14411,6 +14620,106 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 2abcc8484cbc4084baa69da81c59fc3d, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!1 &835929574 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 835929575} + m_Layer: 0 + m_Name: Items + m_TagString: ItemCollection + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &835929575 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 835929574} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -3.8144205, y: 2.055713, z: 53.813805} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 10 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &836498854 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 3079617781123838016, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_Name + value: GridManager + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_RootOrder + value: 13 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838031, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: tilemap + value: + objectReference: {fileID: 1246626} + - target: {fileID: 3079617781123838031, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: showIndividualNodes + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838031, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: TileDatas.Array.data[0] + value: + objectReference: {fileID: 11400000, guid: 95405e1d97d8a4e4f84c70f2bf03610a, type: 2} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 6b44df46620f48f41903e7858379f704, type: 3} --- !u!1 &894928854 GameObject: m_ObjectHideFlags: 0 @@ -14544,6 +14853,72 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 898954636} m_CullTransparentMesh: 1 +--- !u!1 &910626181 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 910626183} + - component: {fileID: 910626182} + m_Layer: 0 + m_Name: Respowner + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &910626182 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 910626181} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7b61fe647fb4fe9409164deb62d90214, type: 3} + m_Name: + m_EditorClassIdentifier: + Respown: 1 + Counter: 30 + minions: + - {fileID: 1286673498977745411, guid: 907fd3295a32657448c71940016c2698, type: 3} + - {fileID: 4095674802650808536, guid: d4ed7b1b2a2b74b49966bd3fb39806ff, type: 3} + - {fileID: 2071044935318948575, guid: 4424631257fae904ca20d56e45a8fce1, type: 3} + - {fileID: 768066516210684488, guid: 37d53369a108ca64b8ec49414fe5b33f, type: 3} + respownPoints: + - {fileID: 1307663526} + - {fileID: 1818662997} + - {fileID: 593642922} + - {fileID: 759652002} + - {fileID: 1917480848} + - {fileID: 387648017} + killedMinions: 0 + associatedChest: {fileID: 0} +--- !u!4 &910626183 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 910626181} + 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: + - {fileID: 1307663527} + - {fileID: 1818662998} + - {fileID: 593642923} + - {fileID: 759652003} + - {fileID: 1917480849} + - {fileID: 387648018} + m_Father: {fileID: 0} + m_RootOrder: 12 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &987934608 GameObject: m_ObjectHideFlags: 0 @@ -15006,6 +15381,37 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: MissionDataList: [] +--- !u!1 &1106173632 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1106173633} + m_Layer: 0 + m_Name: SecondPoint + m_TagString: Untagged + m_Icon: {fileID: -5442936267250999957, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1106173633 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1106173632} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -5.8, y: 3.9, z: 10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 22770815} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1109145951 GameObject: m_ObjectHideFlags: 0 @@ -24349,6 +24755,7 @@ MonoBehaviour: coords: {x: 0.55, y: -10.48, z: 10} nextMapName: Dungeon respawnCoords: {x: 0, y: 0, z: 10} + isEnabled: 0 --- !u!114 &1227686222 MonoBehaviour: m_ObjectHideFlags: 0 @@ -24373,8 +24780,8 @@ Rigidbody2D: m_Simulated: 1 m_UseFullKinematicContacts: 0 m_UseAutoMass: 0 - m_Mass: 1 - m_LinearDrag: 0 + m_Mass: 500 + m_LinearDrag: 5 m_AngularDrag: 0.05 m_GravityScale: 0 m_Material: {fileID: 0} @@ -24421,7 +24828,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 10 + m_RootOrder: 14 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1241145927 GameObject: @@ -24480,7 +24887,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 5 + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1248459272 GameObject: @@ -24874,6 +25281,51 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: MultiDialogueDataList: [] +--- !u!1 &1307663526 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1307663527} + - component: {fileID: 1307663528} + m_Layer: 0 + m_Name: Respowner I + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1307663527 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1307663526} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -7.45, y: 3.6, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 910626183} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1307663528 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1307663526} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 --- !u!1 &1314372662 GameObject: m_ObjectHideFlags: 0 @@ -25464,6 +25916,37 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1360755348} m_CullTransparentMesh: 1 +--- !u!1 &1397886436 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1397886437} + m_Layer: 0 + m_Name: FirstPoint + m_TagString: Untagged + m_Icon: {fileID: -5442936267250999957, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1397886437 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1397886436} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -28.5, y: -3, z: 10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 22770815} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1421208056 GameObject: m_ObjectHideFlags: 0 @@ -26581,6 +27064,37 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1552776006} m_CullTransparentMesh: 1 +--- !u!1 &1572966417 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1572966418} + m_Layer: 0 + m_Name: ThirdPoint + m_TagString: Untagged + m_Icon: {fileID: -5442936267250999957, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1572966418 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1572966417} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.5, y: -8, z: 10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 22770815} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1598937725 GameObject: m_ObjectHideFlags: 0 @@ -26910,7 +27424,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 4 + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1626092663 GameObject: @@ -72462,8 +72976,53 @@ Transform: - {fileID: 516037787} - {fileID: 1626092664} m_Father: {fileID: 0} - m_RootOrder: 6 + m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1818662997 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1818662998} + - component: {fileID: 1818662999} + m_Layer: 0 + m_Name: Respowner II + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1818662998 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1818662997} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 8.6, y: 9, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 910626183} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1818662999 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1818662997} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 --- !u!1 &1827492990 GameObject: m_ObjectHideFlags: 0 @@ -72643,7 +73202,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 8 + m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1846881102 GameObject: @@ -72998,6 +73557,51 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1914465133} m_CullTransparentMesh: 1 +--- !u!1 &1917480848 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1917480849} + - component: {fileID: 1917480850} + m_Layer: 0 + m_Name: Respowner V + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1917480849 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1917480848} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 12.2, y: 3.2, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 910626183} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1917480850 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1917480848} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 --- !u!1 &1925834956 GameObject: m_ObjectHideFlags: 0 @@ -73205,7 +73809,7 @@ RectTransform: - {fileID: 512814467} - {fileID: 1685468476} m_Father: {fileID: 0} - m_RootOrder: 2 + m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -73770,7 +74374,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 7 + m_RootOrder: 9 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &2137885765 GameObject: @@ -73872,5 +74476,82 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 1 + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &4951012254333768565 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 4951012252775454729, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: MinionRespowner + value: + objectReference: {fileID: 910626181} + - target: {fileID: 4951012252775454729, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: Points.Array.data[0] + value: + objectReference: {fileID: 1397886437} + - target: {fileID: 4951012252775454729, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: Points.Array.data[1] + value: + objectReference: {fileID: 1106173633} + - target: {fileID: 4951012252775454729, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: Points.Array.data[2] + value: + objectReference: {fileID: 1572966418} + - target: {fileID: 4951012252775454729, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: Points.Array.data[3] + value: + objectReference: {fileID: 1227686225} + - target: {fileID: 8299560284626945632, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_Name + value: BattleWizard + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_RootOrder + value: 16 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalPosition.y + value: 3.6720886 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalPosition.z + value: 10 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} diff --git a/Assets/Scenes/SecondLabirynthCave.unity b/Assets/Scenes/SecondLabirynthCave.unity index 96e6167c..4277e24f 100644 --- a/Assets/Scenes/SecondLabirynthCave.unity +++ b/Assets/Scenes/SecondLabirynthCave.unity @@ -1051,6 +1051,75 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 171430755} m_CullTransparentMesh: 1 +--- !u!1001 &188723525 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 3079617781123838016, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_Name + value: GridManager + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_RootOrder + value: 11 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838030, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838031, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: tilemap + value: + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838031, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: showIndividualNodes + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3079617781123838031, guid: 6b44df46620f48f41903e7858379f704, type: 3} + propertyPath: TileDatas.Array.data[0] + value: + objectReference: {fileID: 11400000, guid: e4239a81aa53a50408400f1396f9a1a9, type: 2} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 6b44df46620f48f41903e7858379f704, type: 3} --- !u!1 &189982518 GameObject: m_ObjectHideFlags: 0 @@ -1902,6 +1971,7 @@ MonoBehaviour: coords: {x: 0.55, y: -10.48, z: 10} nextMapName: Dungeon respawnCoords: {x: 0, y: 0, z: 10} + isEnabled: 0 --- !u!114 &393747016 MonoBehaviour: m_ObjectHideFlags: 0 @@ -2169,6 +2239,82 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: UiManager: {fileID: 0} +--- !u!1 &436886363 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 436886364} + m_Layer: 0 + m_Name: ThirdPoint + m_TagString: Untagged + m_Icon: {fileID: -5442936267250999957, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &436886364 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 436886363} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.5, y: -19.8, z: 10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1938335923} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &495772598 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 495772600} + - component: {fileID: 495772599} + m_Layer: 0 + m_Name: Respowner V + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &495772599 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 495772598} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 +--- !u!4 &495772600 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 495772598} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 12.2, y: -13.7, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1348709872} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &513887874 GameObject: m_ObjectHideFlags: 0 @@ -2616,6 +2762,132 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: -20, y: 0} m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &588379404 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 588379406} + - component: {fileID: 588379405} + m_Layer: 0 + m_Name: Respowner II + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &588379405 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 588379404} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 +--- !u!4 &588379406 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 588379404} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -4.4, y: -19.1, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1348709872} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &608430739 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 4951012252775454729, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: BattleState + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4951012252775454729, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: MinionRespowner + value: + objectReference: {fileID: 1348709870} + - target: {fileID: 4951012252775454729, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: Points.Array.data[0] + value: + objectReference: {fileID: 1047621537} + - target: {fileID: 4951012252775454729, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: Points.Array.data[1] + value: + objectReference: {fileID: 916415620} + - target: {fileID: 4951012252775454729, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: Points.Array.data[2] + value: + objectReference: {fileID: 436886364} + - target: {fileID: 4951012252775454729, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: Points.Array.data[3] + value: + objectReference: {fileID: 393747019} + - target: {fileID: 8299560284626945632, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_Name + value: BattleWizard + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_RootOrder + value: 12 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalPosition.x + value: 10.17 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalPosition.y + value: -12.38 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalPosition.z + value: 10 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8299560284626945635, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 1dd9a631d03d51f4792b21f682af311d, type: 3} --- !u!1 &610477486 GameObject: m_ObjectHideFlags: 0 @@ -38720,6 +38992,82 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 2abcc8484cbc4084baa69da81c59fc3d, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!1 &911992334 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 911992336} + - component: {fileID: 911992335} + m_Layer: 0 + m_Name: Respowner III + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &911992335 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 911992334} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 +--- !u!4 &911992336 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 911992334} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 5, y: -19.4, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1348709872} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &916415619 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 916415620} + m_Layer: 0 + m_Name: SecondPoint + m_TagString: Untagged + m_Icon: {fileID: -5442936267250999957, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &916415620 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 916415619} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -12.9, y: -33.2, z: 10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1938335923} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &917723575 GameObject: m_ObjectHideFlags: 0 @@ -39283,6 +39631,37 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1044269801} m_CullTransparentMesh: 1 +--- !u!1 &1047621536 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1047621537} + m_Layer: 0 + m_Name: FirstPoint + m_TagString: Untagged + m_Icon: {fileID: -5442936267250999957, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1047621537 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1047621536} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -24.3, y: -23.9, z: 10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1938335923} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1056032291 GameObject: m_ObjectHideFlags: 0 @@ -41570,6 +41949,72 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1326744094} m_CullTransparentMesh: 1 +--- !u!1 &1348709870 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1348709872} + - component: {fileID: 1348709871} + m_Layer: 0 + m_Name: Respowner + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1348709871 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1348709870} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7b61fe647fb4fe9409164deb62d90214, type: 3} + m_Name: + m_EditorClassIdentifier: + Respown: 1 + Counter: 30 + minions: + - {fileID: 1286673498977745411, guid: 907fd3295a32657448c71940016c2698, type: 3} + - {fileID: 4095674802650808536, guid: d4ed7b1b2a2b74b49966bd3fb39806ff, type: 3} + - {fileID: 2071044935318948575, guid: 4424631257fae904ca20d56e45a8fce1, type: 3} + - {fileID: 768066516210684488, guid: 37d53369a108ca64b8ec49414fe5b33f, type: 3} + respownPoints: + - {fileID: 1501176715} + - {fileID: 588379404} + - {fileID: 911992334} + - {fileID: 2073700430} + - {fileID: 495772598} + - {fileID: 1800393219} + killedMinions: 0 + associatedChest: {fileID: 0} +--- !u!4 &1348709872 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1348709870} + 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: + - {fileID: 1501176717} + - {fileID: 588379406} + - {fileID: 911992336} + - {fileID: 2073700432} + - {fileID: 495772600} + - {fileID: 1800393221} + m_Father: {fileID: 0} + m_RootOrder: 14 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1379000824 GameObject: m_ObjectHideFlags: 0 @@ -55895,6 +56340,51 @@ RectTransform: m_AnchoredPosition: {x: -5, y: 0} m_SizeDelta: {x: -20, y: 0} m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &1501176715 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1501176717} + - component: {fileID: 1501176716} + m_Layer: 0 + m_Name: Respowner I + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1501176716 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1501176715} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 +--- !u!4 &1501176717 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1501176715} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -2.7, y: -15.4, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1348709872} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1510694748 GameObject: m_ObjectHideFlags: 0 @@ -56231,6 +56721,37 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1521594999} m_CullTransparentMesh: 1 +--- !u!1 &1534566625 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1534566626} + m_Layer: 0 + m_Name: Enemy + m_TagString: EnemyCollection + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1534566626 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1534566625} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 7.880188, y: 0.35018623, z: -0.051872663} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 15 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1537941804 GameObject: m_ObjectHideFlags: 0 @@ -57299,6 +57820,51 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: MissionDataList: [] +--- !u!1 &1800393219 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1800393221} + - component: {fileID: 1800393220} + m_Layer: 0 + m_Name: RespownerI VI + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1800393220 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1800393219} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 +--- !u!4 &1800393221 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1800393219} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 11.57, y: -6, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1348709872} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1829337679 GameObject: m_ObjectHideFlags: 0 @@ -57683,6 +58249,40 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1872046347} m_CullTransparentMesh: 1 +--- !u!1 &1938335922 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1938335923} + m_Layer: 0 + m_Name: WizardPoints + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1938335923 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1938335922} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 17.793322, y: 9.569919, z: 4752.9263} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1047621537} + - {fileID: 916415620} + - {fileID: 436886364} + m_Father: {fileID: 0} + m_RootOrder: 13 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1950810085 GameObject: m_ObjectHideFlags: 0 @@ -58261,6 +58861,51 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &2073700430 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2073700432} + - component: {fileID: 2073700431} + m_Layer: 0 + m_Name: Respowner IV + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &2073700431 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2073700430} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7571e86bbad71c34e82f55c1d83725fe, type: 3} + m_Name: + m_EditorClassIdentifier: + Blocked: 0 +--- !u!4 &2073700432 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2073700430} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 17.9, y: -14.4, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1348709872} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &2081087905 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/ChangeScene.cs b/Assets/Scripts/ChangeScene.cs index ac5641bd..07636e26 100644 --- a/Assets/Scripts/ChangeScene.cs +++ b/Assets/Scripts/ChangeScene.cs @@ -62,6 +62,12 @@ public class ChangeScene : MonoBehaviour { if(collision.gameObject.tag == "SceneTransition") { + if(!collision.gameObject.GetComponent().isEnabled) + { + Debug.Log("Door are not enabled"); + return; + } + collision.gameObject.GetComponent().ScenetToMoveTo(); } if(collision.gameObject.tag == "AnimatedDoorSceneTransition") diff --git a/Assets/Scripts/DoorBehaviour.cs b/Assets/Scripts/DoorBehaviour.cs index d4fbdf5d..b42d1c2b 100644 --- a/Assets/Scripts/DoorBehaviour.cs +++ b/Assets/Scripts/DoorBehaviour.cs @@ -10,6 +10,9 @@ public class DoorBehaviour : MonoBehaviour [SerializeField] public Gateway gateway; + [SerializeField] + public bool isEnabled = true; + // Start is called before the first frame update void Start() { diff --git a/Assets/Scripts/Pathfinding/TileData/Ground - FirstLabCave.asset b/Assets/Scripts/Pathfinding/TileData/Ground - FirstLabCave.asset new file mode 100644 index 00000000..4e074f5b --- /dev/null +++ b/Assets/Scripts/Pathfinding/TileData/Ground - FirstLabCave.asset @@ -0,0 +1,20 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9890013e3eb0ea54b90ab8d093688ac6, type: 3} + m_Name: Ground - FirstLabCave + m_EditorClassIdentifier: + Tiles: + - {fileID: 11400000, guid: d30976c74e1338e43ab2fb37c0f3869f, type: 2} + - {fileID: 11400000, guid: 562aa896af43f854d9a8de005acf3526, type: 2} + - {fileID: 11400000, guid: 7a995c793a6eb774d8221de2a6fdb8fe, type: 2} + - {fileID: 11400000, guid: 3b0bd9f7060361b4a9112187c8887d76, type: 2} + walkable: 1 diff --git a/Assets/Scripts/Pathfinding/TileData/Ground - FirstLabCave.asset.meta b/Assets/Scripts/Pathfinding/TileData/Ground - FirstLabCave.asset.meta new file mode 100644 index 00000000..46dd37fc --- /dev/null +++ b/Assets/Scripts/Pathfinding/TileData/Ground - FirstLabCave.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 95405e1d97d8a4e4f84c70f2bf03610a +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Pathfinding/TileData/Ground - SecondLabCave.asset b/Assets/Scripts/Pathfinding/TileData/Ground - SecondLabCave.asset new file mode 100644 index 00000000..cb2490e4 --- /dev/null +++ b/Assets/Scripts/Pathfinding/TileData/Ground - SecondLabCave.asset @@ -0,0 +1,20 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9890013e3eb0ea54b90ab8d093688ac6, type: 3} + m_Name: Ground - SecondLabCave + m_EditorClassIdentifier: + Tiles: + - {fileID: 11400000, guid: d30976c74e1338e43ab2fb37c0f3869f, type: 2} + - {fileID: 11400000, guid: 562aa896af43f854d9a8de005acf3526, type: 2} + - {fileID: 11400000, guid: 7a995c793a6eb774d8221de2a6fdb8fe, type: 2} + - {fileID: 11400000, guid: 3b0bd9f7060361b4a9112187c8887d76, type: 2} + walkable: 1 diff --git a/Assets/Scripts/Pathfinding/TileData/Ground - SecondLabCave.asset.meta b/Assets/Scripts/Pathfinding/TileData/Ground - SecondLabCave.asset.meta new file mode 100644 index 00000000..00465ea8 --- /dev/null +++ b/Assets/Scripts/Pathfinding/TileData/Ground - SecondLabCave.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e4239a81aa53a50408400f1396f9a1a9 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/REFACTORING/Application/Tools/CounterRespowner.cs b/Assets/Scripts/REFACTORING/Application/Tools/CounterRespowner.cs index 8753992b..b3c83642 100644 --- a/Assets/Scripts/REFACTORING/Application/Tools/CounterRespowner.cs +++ b/Assets/Scripts/REFACTORING/Application/Tools/CounterRespowner.cs @@ -50,6 +50,10 @@ class CounterRespowner : MonoBehaviour } else if(Counter <= 20 && killedMinions >= 4) { coroutine = SpownWithDelay(3.0f); + } else + { + Debug.Log(Counter); + coroutine = SpownWithDelay(0.5f); } StartCoroutine(coroutine); @@ -83,41 +87,17 @@ class CounterRespowner : MonoBehaviour ; // Decide which spowner use - spowner = respownPoints - .ElementAt(UnityEngine.Random.Range(0, respownPoints.Count())) - .transform - .position - ; - // Change position - var newPosition = new Vector3( - spowner.x + UnityEngine.Random.Range(-3.8f, 3.8f), - spowner.y + UnityEngine.Random.Range(-3.8f, 3.8f), - 10 - ); + GameObject spownerObject = null; - BuildMinion(minion, newPosition); - } - - public void BuildMinion(GameObject minion, Vector3 coord) - { - var sceneGui = GameObject.FindGameObjectWithTag("EnemyCollection"); - - if (sceneGui == null) + do { - throw new Exception("GUI not found on scene!!!"); - return; - } - - var newMinion = Instantiate(minion, coord, Quaternion.identity, sceneGui.transform); - - newMinion.name = minion.name; - // newMinion.transform.SetParent(sceneGui.transform); - - newMinion.GetComponent().sortingOrder = 3; - - newMinion.AddComponent(); - newMinion.GetComponent().SetParentRespowner(gameObject); + spownerObject = respownPoints + .ElementAt(UnityEngine.Random.Range(0, respownPoints.Count())); + } while (spownerObject.GetComponent().Blocked == true); + // Spawn object + spownerObject.GetComponent().Respown(minion); } + } diff --git a/Assets/Scripts/REFACTORING/Application/Tools/MinionRespowner.cs b/Assets/Scripts/REFACTORING/Application/Tools/MinionRespowner.cs new file mode 100644 index 00000000..d117b437 --- /dev/null +++ b/Assets/Scripts/REFACTORING/Application/Tools/MinionRespowner.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using UnityEngine; + +class MinionRespowner : MonoBehaviour +{ + /// + /// Function to determine if object nad respown object + /// + public bool Blocked = false; + + private void Start() + { + + } + + private void Update() + { + + } + + public void Respown(GameObject enemyModel) + { + // Change position + var newPosition = new Vector3( + gameObject.transform.position.x + UnityEngine.Random.Range(-3.8f, 3.8f), + gameObject.transform.position.y + UnityEngine.Random.Range(-3.8f, 3.8f), + 10 + ); + + BuildMinion(enemyModel, newPosition); + } + + public void BuildMinion(GameObject minion, Vector3 coord) + { + var sceneGui = GameObject.FindGameObjectWithTag("EnemyCollection"); + + if (sceneGui == null) + { + throw new Exception("GUI not found on scene!!!"); + return; + } + + var newMinion = Instantiate(minion, coord, Quaternion.identity, sceneGui.transform); + + newMinion.name = minion.name; + // newMinion.transform.SetParent(sceneGui.transform); + + newMinion.GetComponent().sortingOrder = 3; + + newMinion.AddComponent(); + newMinion.GetComponent().SetParentRespowner(GameObject.FindObjectOfType().gameObject); + + } +} diff --git a/Assets/Scripts/REFACTORING/Application/Tools/MinionRespowner.cs.meta b/Assets/Scripts/REFACTORING/Application/Tools/MinionRespowner.cs.meta new file mode 100644 index 00000000..e9ea16b9 --- /dev/null +++ b/Assets/Scripts/REFACTORING/Application/Tools/MinionRespowner.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7571e86bbad71c34e82f55c1d83725fe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/REFACTORING/Story/Dungeon/Wizard/BattleWizard.cs b/Assets/Scripts/REFACTORING/Story/Dungeon/Wizard/BattleWizard.cs new file mode 100644 index 00000000..843903f9 --- /dev/null +++ b/Assets/Scripts/REFACTORING/Story/Dungeon/Wizard/BattleWizard.cs @@ -0,0 +1,612 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using UnityEngine; +using UnityEngine.SceneManagement; + +/// +/// Załozenia na przyszłość +/// - player atakując powinien wysyłać informacje o akcji ataku z wartością obrażeń +/// enemy przymując ją powinien kalkulować szanse uniku / bloku (i odskakiwać w bokj lub do tyłu) albo przyjmować obrazenia +/// WSZĘDZIE ANIMACJA blokuąca inne akcje na czas odtwarzania efektu +/// +public enum WizardBattleStepsEnum +{ + First, // have 100% hp, lasts until the value will be reduced to 7%% + Second, // have 75%% hp, lasts until the value will be reduced to 50% + Third, // have 50%% hp, lasts until the value will be reduced to 25% + Last, + Summoning, // after reducing hp to 75, 50, 25 per cent wizard start to summon minions + Escaping // when player have 25% he starts escape - go to teleport +} + +[RequireComponent(typeof(NPC))] +[RequireComponent(typeof(AStarPathfindingAgent))] +class BattleWizard : MonoBehaviour +{ + public const string BATTLE_STATE = "BattleState"; + + public WizardBattleStepsEnum BattleState = WizardBattleStepsEnum.First; + + [Header("Health")] + public float defence = 0; + public int maxHealth = 100; + public float currentHealth; + + public bool canTakeDamage = true; + + public float attackValue = 5; + public float attackingRadius = 6; + + [Header("Summoned Minions")] + public GameObject MinionRespowner; + public int SummonedMinionsCounter = 3; + public int KilledMinionsCounter = 0; + public bool IsAfterSummoning = false; + + [Header("Step points")] + public bool approaching = false; // mean - we can go closer to Player + [Space] + public int CurrentPoint = 0; + public Transform[] Points; + public Vector3 TargetPosition; + + + [Space] + [Header("Attacking Logic")] + public bool hit = false; + + public bool firstAttack = false; + + public float timerDmg = 0f; + public float timeToWaitBeforeNextAttack = 1.0f; // time which npc must wait before he can atack player again + + public float timerHit = 0f; + public float timeToWaitBeforeNextHitFromPlayer = 0.55f; // should be moved to player script !!!! + + public bool isPanelEnabled = true; // flag about some panel status.... (probably youDied / respown) + + private void Start() + { + MinionRespowner.GetComponent().Respown = false; + MinionRespowner.GetComponent().Counter = 0; + + currentHealth = maxHealth; + + + if (HasProggress()) + { + BattleState = GetProggress(); + + switch(BattleState) + { + case WizardBattleStepsEnum.First: + { + // to do nothing to do here + break; + } + case WizardBattleStepsEnum.Second: + { + BattleState = WizardBattleStepsEnum.First; // go one stop earlier to propertly go throught Escaping and Summoning + + gameObject.transform.position = Points[0].position; + + currentHealth = maxHealth * 0.75f; + + SummonedMinionsCounter = 3; + + CurrentPoint = 1; + break; + } + case WizardBattleStepsEnum.Third: + { + BattleState = WizardBattleStepsEnum.Second; + + gameObject.transform.position = Points[1].position; + + currentHealth = maxHealth * 0.50f; + + SummonedMinionsCounter = 6; + + CurrentPoint = 2; + + break; + } + case WizardBattleStepsEnum.Last: + { + BattleState = WizardBattleStepsEnum.Third; + + gameObject.transform.position = Points[2].position; + + currentHealth = maxHealth * 0.25f; + + SummonedMinionsCounter = 12; + + CurrentPoint = 3; + + break; + } + } + } + else + { + gameObject.GetComponent().State = NPCStateEnum.None; + + BattleState = WizardBattleStepsEnum.First; + CurrentPoint = 0; + SummonedMinionsCounter = 3; // deffault value at start + } + + defecnceCalculate(); + speedCalculate(); + + // control battle proggress + ManageBehaviourScenario(); + } + + private void Update() + { + if (gameObject.GetComponent().State == NPCStateEnum.Walking) + { + var dir = TargetPosition - transform.position; + float angle = Mathf.Atan2(dir.y, dir.x) * Mathf.Rad2Deg; + dir.Normalize(); + + gameObject.GetComponent().SetBool("isRunning", new Vector2( dir.x, dir.y) != Vector2.zero); + } + + // taking demage by time logic + TakingDamageManagment(); + + // take action based on npc state + HandleState(); + + + // config battle depending on state + if (IsAfterSummoning) + { + //wait for killing minions by player + if (MinionRespowner.GetComponent().killedMinions >= SummonedMinionsCounter * 3/5f) + { + SummonedMinionsCounter *= 2; + + MinionRespowner.GetComponent().killedMinions = 0; + IsAfterSummoning = false; + + if ((WizardBattleStepsEnum)GetProggress() == WizardBattleStepsEnum.First) + BattleState = WizardBattleStepsEnum.Second; + else if ((WizardBattleStepsEnum)GetProggress() == WizardBattleStepsEnum.Second) + BattleState = WizardBattleStepsEnum.Third; + else if ((WizardBattleStepsEnum)GetProggress() == WizardBattleStepsEnum.Third) + BattleState = WizardBattleStepsEnum.Last; + + approaching = true; // flag whivh tell to go in player direction + canTakeDamage = true; + gameObject.GetComponent().State = NPCStateEnum.Walking; + + SaveProggress(BattleState); + } + + } + } + + public void OnTriggerEnter2D(Collider2D collision) + { + // after reaching teleport position remove component + if (collision.gameObject.tag == "SceneTransition") + { + collision.gameObject.GetComponent().isEnabled = true; + + SaveProggress(WizardBattleStepsEnum.First); + + Destroy(gameObject); + } + + // Hit logic + if (collision.gameObject.tag == "AttackHitbox" || collision.gameObject.tag == "PickaxeHitbox") + { + hit = true; + } + } + + + public void OnTriggerExit2D(Collider2D collision) + { + // Hit logic + if (collision.gameObject.tag == "AttackHitbox" || collision.gameObject.tag == "PickaxeHitbox") + { + timerDmg = 0f; + + hit = false; + } + } + + // script controlling battle scenario by listening on change, depending on: + // - Wizard life + // - Wizard state + // - battle state + public void ManageBehaviourScenario() + { + // at first + if (BattleState == WizardBattleStepsEnum.First && + gameObject.GetComponent().State == NPCStateEnum.None) + { + Debug.Log("First"); + approaching = true; + + gameObject.GetComponent().State = NPCStateEnum.Walking; // HandleState make rest - makes sure the wizard walks up to the player and cxhange state to attacking + } else + + + + // detect health status after each taked damage from player (invoked in TakeDamage) + if ((BattleState == WizardBattleStepsEnum.First || BattleState == WizardBattleStepsEnum.Second || BattleState == WizardBattleStepsEnum.Third) && + (gameObject.GetComponent().State & NPCStateEnum.Attacking) > 0) + { + if (IsAfterSummoning == true) + return; + + + } else + + + + // 1 Change state to pending & block damage taking & go to safe position + + if (BattleState == WizardBattleStepsEnum.Escaping) + { + gameObject.GetComponent().speed = 5f; + + canTakeDamage = false; + + approaching = false; + + + if (currentHealth <= maxHealth * 0.10f) // summon before + { + Debug.Log("Wizard HP critical"); + TargetPosition = Points[Points.Count() - 1].position; + SummonManagment(); + + } + else + { + TargetPosition = Points[CurrentPoint].position; + + CurrentPoint++; + } + + gameObject.GetComponent().State = NPCStateEnum.Walking; // go to newxt base point + } else + + if (BattleState == WizardBattleStepsEnum.Summoning) + { + if(!IsAfterSummoning) + { + speedCalculate(); + SummonManagment(); + } + } + } + + public void HandleState() + { + switch (gameObject.GetComponent().State) + { + case NPCStateEnum.Walking: // to player, to next point, to exit xd + { + WalkingManagment(); + break; + } + case NPCStateEnum.Attacking: + { + gameObject.GetComponent().SetBool("isRunning", false); + + AttackManagment(); + break; + } + case NPCStateEnum.Pending: + { + gameObject.GetComponent().SetBool("isRunning", false); + + BattleState = WizardBattleStepsEnum.Summoning; + + ManageBehaviourScenario(); + break; + } + default: + { + break; + } + } + } + + public void WalkingManagment() + { + StopAllCoroutines(); + + if(approaching) + { + // when we can go closer to player - we go closer and when we are close enought we start attacking + if (!IsInAttackRadious()) + { + gameObject.GetComponent().FindPath(); + StartCoroutine(gameObject.GetComponent().FollowPath()); + } + else + { + timeToWaitBeforeNextAttack = 0; // to allowa to first hit withot waiting + + // in this script we set attacking mode + gameObject.GetComponent().State = NPCStateEnum.Attacking; + + gameObject.GetComponent().path.Clear(); // if we are able to talgk we dont want go go further player + } + } + else + { + // we summon minions and go to next save point, else we escape + // IMPOSRANT make summoning and walking independent and unbinded in code + + // first focus on targetting next step from list + //Debug.Log(Vector2.Distance(transform.position, TargetPosition)); + if (Vector2.Distance(transform.position, TargetPosition) > 0.95f) // count value - path finding stop moving them before reachin position well.. + { + gameObject.GetComponent().point = TargetPosition; + + gameObject.GetComponent().FindPoint(); + + StartCoroutine(gameObject.GetComponent().FollowPath()); + } + else + { + // ------ anim.SetBool("isRunning", false); + + gameObject.GetComponent().SetBool("isRunning", false); + + // set next point for future + gameObject.GetComponent().State = NPCStateEnum.Pending; // decide what next + + } + } + + } + + public void SummonManagment() + { + + // 2. Spown minions (depending on iteration increase spowned amount + + BlockRespowners(); + + MinionRespowner.GetComponent().Counter = SummonedMinionsCounter; + MinionRespowner.GetComponent().Respown = true; + + IsAfterSummoning = true; + Debug.Log("After summoning"); + } + + #region damage managment + /// + /// Take damage only once in a time and only when IT IS ALLOWED + /// + public void TakingDamageManagment() + { + // COPIED FROM Following Enemy scripts + // Taking hit logic + timerHit += Time.deltaTime; + if (hit == true && canTakeDamage) + { + if (timerHit >= timeToWaitBeforeNextHitFromPlayer) + { + + TakeDamage(PlayerPrefs.GetFloat("attackValue")); + hit = false; + timerHit = 0f; + TakeKnockback(); + } + } + } + + private void TakeDamage(float damage) + { + var healthBeforeDamage = currentHealth; + + damage = damage - defence; + damage = damage < 0 ? 0 : damage; + Debug.Log("Gamage from player: " + damage + "(defence: " + defence + ")"); + currentHealth -= damage; + + /* if (gameObject.GetComponent().health <= 0) + { + gameObject.SetActive(false); + gameObject.GetComponent().isKilled = 1; + GameObject.FindGameObjectWithTag("Player").GetComponent().GetExp(30); + + // pass info about killing assigned enemy to mission manager listener + // pass enemy name from script NOT object name (thats allow to have many different objects variantsa with this same aggregate key (private name - not preffab name) ) + ConditionManager.Instance.UpdateKillCondition(gameObject.GetComponent().MinionName); + }*/ + + if ( + (healthBeforeDamage > maxHealth * 0.75f && currentHealth <= maxHealth * 0.75f) || + (healthBeforeDamage > maxHealth * 0.50f && currentHealth <= maxHealth * 0.50f) || + (healthBeforeDamage > maxHealth * 0.25f && currentHealth <= maxHealth * 0.25f) || + (healthBeforeDamage > maxHealth * 0.10f && currentHealth <= maxHealth * 0.10f) + ){ + Debug.Log("escaping"); + BattleState = WizardBattleStepsEnum.Escaping; + Debug.Log(BattleState); + + // re-calculate after each damage + defecnceCalculate(); + speedCalculate(); + + ManageBehaviourScenario(); + } + } + + private void TakeKnockback() + { + Rigidbody2D enemy = gameObject.GetComponent(); + Rigidbody2D player = GameObject.FindGameObjectWithTag("Player").GetComponent(); + + if (enemy != null) + { + enemy.isKinematic = false; + Vector2 difference = enemy.transform.position - player.transform.position; + difference = difference.normalized * 5; // thrust + enemy.AddForce(difference, ForceMode2D.Impulse); + //StartCoroutine(KnockCo(enemy)); + } + } + #endregion + + #region attack managment + + public void AttackManagment() + { + // if during Attacking mode player GO OUT of the attacking radious + if (!IsInAttackRadious()) + { + gameObject.GetComponent().State = NPCStateEnum.Walking; + return; + } + + // Attack logic + if (timerDmg >= timeToWaitBeforeNextAttack) + { + timerDmg = 0f; + + GameObject.FindGameObjectWithTag("Player").GetComponent().TakeDamage( + attackValue, + isPanelEnabled + ); + } + speedCalculate(); // to restore property timeToWaitBeforeNextAttack walue + + timerDmg += Time.deltaTime; + } + + public bool IsInAttackRadious() + { + if (Vector2.Distance(GameObject.FindGameObjectWithTag("Player").transform.position, transform.position) >= attackingRadius) + return false; + + return true; + } + #endregion + + // jesli gracz ma "x" pkt siły + // Ze wzgledu na wyniki EXCEL'a zakładajac że + // - gracz ma 4/5 pkt sily (skile + bonus naszyjnika) + // obrona nie moze przekroczyc 3 - 3.2f + public void defecnceCalculate() + { + if (currentHealth > maxHealth * 0.75f) + { + defence = 1.5f; + }else if(currentHealth <= maxHealth * 0.75f && currentHealth > maxHealth * 0.50f) + { + defence = 2.5f; + } + else if (currentHealth <= maxHealth * 0.50f && currentHealth > maxHealth * 0.25f) + { + defence = 3.15f; + } else if (currentHealth <= maxHealth * 0.25f && currentHealth > maxHealth * 0.10f) + { + defence = 4f; // or higher ??? + } + } + + public void speedCalculate() + { + if (currentHealth > maxHealth * 0.75f) + { + gameObject.GetComponent().speed = 1f; + timeToWaitBeforeNextAttack = 1f; + } + else if (currentHealth <= maxHealth * 0.75f && currentHealth > maxHealth * 0.50f) + { + gameObject.GetComponent().speed = 1.15f; + timeToWaitBeforeNextAttack = 0.8f; + } + else if (currentHealth <= maxHealth * 0.50f && currentHealth > maxHealth * 0.25f) + { + gameObject.GetComponent().speed = 1.30f; + timeToWaitBeforeNextAttack = 0.7f; + + } + else if (currentHealth <= maxHealth * 0.25f && currentHealth > maxHealth * 0.10f) + { + gameObject.GetComponent().speed = 1.45f; + timeToWaitBeforeNextAttack = 0.6f; + } + } + + #region Respown minions managments + private void BlockRespowners() + { + ResetRespowners(); + + if (SummonedMinionsCounter == 3) // use only 1 + { + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(1).GetComponent().Blocked = true; + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(2).GetComponent().Blocked = true; + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(3).GetComponent().Blocked = true; + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(4).GetComponent().Blocked = true; + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(5).GetComponent().Blocked = true; + } + if (SummonedMinionsCounter == 6) // use 2 & 3 + { + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(0).GetComponent().Blocked = true; + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(3).GetComponent().Blocked = true; + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(4).GetComponent().Blocked = true; + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(5).GetComponent().Blocked = true; + } + if (SummonedMinionsCounter == 12) // use 2 & 4 & 5 + { + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(0).GetComponent().Blocked = true; + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(1).GetComponent().Blocked = true; + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(5).GetComponent().Blocked = true; + } + if (SummonedMinionsCounter > 12) // use 4 & 5 & 6 + { + SummonedMinionsCounter = 15; + + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(0).GetComponent().Blocked = true; + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(1).GetComponent().Blocked = true; + MinionRespowner.GetComponent().respownPoints.ElementAtOrDefault(2).GetComponent().Blocked = true; + } + } + + private void ResetRespowners() + { + foreach(var respownPointObject in MinionRespowner.GetComponent().respownPoints) + { + respownPointObject.GetComponent().Blocked = false; + } + } + #endregion + + #region proggress API + public void SaveProggress(WizardBattleStepsEnum status) + { + Debug.Log("Save: " + status); + + PlayerPrefs.SetInt(SceneManager.GetActiveScene().name + "." + BATTLE_STATE, (int)status); + } + + public WizardBattleStepsEnum GetProggress() + { + return (WizardBattleStepsEnum)PlayerPrefs.GetInt(SceneManager.GetActiveScene().name + "." + BATTLE_STATE); + } + + public bool HasProggress() + { + return PlayerPrefs.HasKey(SceneManager.GetActiveScene().name + "." + BATTLE_STATE); + } + #endregion +} diff --git a/Assets/Scripts/REFACTORING/Story/Dungeon/Wizard/BattleWizard.cs.meta b/Assets/Scripts/REFACTORING/Story/Dungeon/Wizard/BattleWizard.cs.meta new file mode 100644 index 00000000..2bc67430 --- /dev/null +++ b/Assets/Scripts/REFACTORING/Story/Dungeon/Wizard/BattleWizard.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 85ed5d06f443ff547aeb225e656c0e19 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: