Турель теперь тоже блок

This commit is contained in:
2026-05-11 23:23:57 +03:00
parent f39dcb6e9a
commit 1bf4ec3194
2 changed files with 16 additions and 1 deletions
+14
View File
@@ -10,6 +10,7 @@ GameObject:
m_Component: m_Component:
- component: {fileID: 8963012862262609948} - component: {fileID: 8963012862262609948}
- component: {fileID: 29170313400163205} - component: {fileID: 29170313400163205}
- component: {fileID: 7562998883280121027}
m_Layer: 0 m_Layer: 0
m_Name: TestTurret m_Name: TestTurret
m_TagString: Untagged m_TagString: Untagged
@@ -50,6 +51,19 @@ MonoBehaviour:
_damage: 0 _damage: 0
_distance: 0 _distance: 0
_price: 100 _price: 100
--- !u!114 &7562998883280121027
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4097875286209268245}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8d6715c95501a4f49bd34c8832850f32, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::BlockScript
_type: 4
--- !u!1 &4329906039658757740 --- !u!1 &4329906039658757740
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
+2 -1
View File
@@ -8,7 +8,8 @@ public class BlockScript : MonoBehaviour
None, None,
Grass, Grass,
Sand, Sand,
PathFinish PathFinish,
Turret
} }
[SerializeField] private BlockType _type = BlockType.None; [SerializeField] private BlockType _type = BlockType.None;