Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
moha-b authored Apr 15, 2023
2 parents 067d5a8 + cd57150 commit f27e843
Show file tree
Hide file tree
Showing 34 changed files with 907 additions and 481 deletions.
43 changes: 42 additions & 1 deletion Assets/Prefabs/Police.prefab → Assets/Prefabs/Cop.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@ GameObject:
- component: {fileID: 2029869656}
- component: {fileID: 2029869655}
- component: {fileID: 2029869662}
- component: {fileID: 8706587534195932413}
- component: {fileID: 2029869664}
- component: {fileID: 2029869665}
m_Layer: 0
m_Name: Police
m_Name: Cop
m_TagString: Player
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
Expand Down Expand Up @@ -247,8 +250,46 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 0a9885324a079f84c9062afea342983d, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &8706587534195932413
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8619338778009079851}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bf4133c59ea42bb41a06278bd0040cc4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2029869664
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8619338778009079851}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: eadfcd4e5aaab4f4186be237ae6f4367, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &2029869665
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8619338778009079851}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d06b65ffac4aeee44b540afdee5f4e98, type: 3}
m_Name:
m_EditorClassIdentifier:
bullet: {fileID: 5689450973616959451, guid: a5b944ff0c1dd9b40a3a1c4365dd2ce1, type: 3}
bulletTransform: {fileID: 8900475362468441194}
bulletSpeed: 10
isShootingOn: 0
--- !u!1 &8619338778009079855
GameObject:
m_ObjectHideFlags: 0
Expand Down
File renamed without changes.
77 changes: 77 additions & 0 deletions Assets/Prefabs/Enemy Spawner.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &6246371829720322739
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6246371829720322748}
- component: {fileID: 6246371829720322749}
- component: {fileID: 6246371829720322750}
- component: {fileID: 6246371829720322751}
m_Layer: 0
m_Name: Enemy Spawner
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6246371829720322748
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6246371829720322739}
m_LocalRotation: {x: -0, y: 1, z: -0, w: -0.00000016292068}
m_LocalPosition: {x: 0.24, y: 0, z: 39.440132}
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!114 &6246371829720322749
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6246371829720322739}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c35afa73613ff3946be7fed53b4fa881, type: 3}
m_Name:
m_EditorClassIdentifier:
zombiePrefab: {fileID: 856601670117699726, guid: b14953694d54eea4eb66f453e525024c, type: 3}
zombieList: []
enemysNumber: 5
isZombieAttack: 0
--- !u!65 &6246371829720322750
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6246371829720322739}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 6.1, y: 0.5, z: 7.8093915}
m_Center: {x: 0, y: 0, z: 0.40469575}
--- !u!114 &6246371829720322751
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6246371829720322739}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e251059c5953f8249897732bc62da839, type: 3}
m_Name:
m_EditorClassIdentifier:
7 changes: 7 additions & 0 deletions Assets/Prefabs/Enemy Spawner.prefab.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions Assets/Prefabs/Zombie.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ GameObject:
- component: {fileID: 1552702606}
- component: {fileID: 1552702605}
- component: {fileID: 6136956654677822583}
- component: {fileID: -9185599043494665271}
m_Layer: 0
m_Name: Zombie
m_TagString: Untagged
Expand Down Expand Up @@ -164,6 +165,19 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
player: {fileID: 0}
spawner: {fileID: 0}
--- !u!114 &-9185599043494665271
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 856601670117699726}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 068545d5f77a54647927a2a14a186013, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &856601670117699840
GameObject:
m_ObjectHideFlags: 0
Expand Down
Loading

0 comments on commit f27e843

Please sign in to comment.