From 1be47add347c5d8603938587cc0a220295b5ca24 Mon Sep 17 00:00:00 2001 From: shakurass Date: Sun, 27 Apr 2014 11:02:42 -0600 Subject: [PATCH] Separated walk AI from demon/patron reactions. --- Assets/Materials/Neutral Material.mat | 2 +- Assets/Scenes/Main.unity | 1241 ++++++----------- Assets/Scripts/Demon.cs | 19 + Assets/Scripts/Demon.cs.meta | 8 + Assets/Scripts/NavPoint.cs | 2 +- Assets/Scripts/Patron.cs | 31 - Assets/Scripts/PlayerController.cs | 6 +- Assets/Scripts/WalkAI.cs | 27 + Assets/Scripts/WalkAI.cs.meta | 8 + .../Materials/brickwal-not-animatedl0.mat | 2 +- Assets/Sprites/poser2.png.meta | 4 +- 11 files changed, 464 insertions(+), 886 deletions(-) create mode 100644 Assets/Scripts/Demon.cs create mode 100644 Assets/Scripts/Demon.cs.meta create mode 100644 Assets/Scripts/WalkAI.cs create mode 100644 Assets/Scripts/WalkAI.cs.meta diff --git a/Assets/Materials/Neutral Material.mat b/Assets/Materials/Neutral Material.mat index 8b6a3b2..e6ea327 100644 --- a/Assets/Materials/Neutral Material.mat +++ b/Assets/Materials/Neutral Material.mat @@ -19,7 +19,7 @@ Material: second: m_Texture: {fileID: 0} m_Scale: {x: .5, y: .5} - m_Offset: {x: 0, y: .5} + m_Offset: {x: .5, y: 0} m_Floats: {} m_Colors: data: diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index 86d8b2c..5efca0d 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -254,7 +254,7 @@ Transform: m_LocalPosition: {x: -5.0881815, y: 8.99458694, z: 4.92175865} m_LocalScale: {x: 2, y: 3, z: 2} m_Children: - - {fileID: 437867469} + - {fileID: 544670123} m_Father: {fileID: 704683992} --- !u!54 &134611201 Rigidbody: @@ -279,7 +279,7 @@ MonoBehaviour: m_GameObject: {fileID: 134611195} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b933d79988a624405b43ff0fb8c3d527, type: 3} + m_Script: {fileID: 11500000, guid: fc3037736f75b53479f5da8bd507b6eb, type: 3} m_Name: m_EditorClassIdentifier: destinations: @@ -308,6 +308,131 @@ NavMeshAgent: m_BaseOffset: .50000006 m_WalkableMask: 4294967295 m_ObstacleAvoidanceType: 4 +--- !u!1 &141506784 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 141506785} + - 33: {fileID: 141506791} + - 65: {fileID: 141506790} + - 23: {fileID: 141506789} + - 54: {fileID: 141506788} + - 195: {fileID: 141506787} + - 114: {fileID: 141506786} + m_Layer: 0 + m_Name: Patron + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &141506785 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 141506784} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -5.0881815, y: 8.99458694, z: 4.92175865} + m_LocalScale: {x: 2, y: 3, z: 2} + m_Children: + - {fileID: 434483768} + m_Father: {fileID: 704683992} +--- !u!114 &141506786 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 141506784} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fc3037736f75b53479f5da8bd507b6eb, type: 3} + m_Name: + m_EditorClassIdentifier: + destinations: + - {fileID: 582022781} + - {fileID: 973833183} + currentDestIndex: 1 + evilMat: {fileID: 2100000, guid: f259c2b0e77aaec4da868f7cc2a94f99, type: 2} + neutralMat: {fileID: 2100000, guid: cf27db5b36385ff4eb67c47fd9d428f9, type: 2} +--- !u!195 &141506787 +NavMeshAgent: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 141506784} + m_Enabled: 1 + m_Radius: .5 + m_Speed: 5 + m_Acceleration: 10000 + avoidancePriority: 50 + m_AngularSpeed: 120 + m_StoppingDistance: 0 + m_AutoTraverseOffMeshLink: 1 + m_AutoBraking: 1 + m_AutoRepath: 1 + m_Height: 1.00000012 + m_BaseOffset: .50000006 + m_WalkableMask: 4294967295 + m_ObstacleAvoidanceType: 4 +--- !u!54 &141506788 +Rigidbody: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 141506784} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 112 + m_CollisionDetection: 0 +--- !u!23 &141506789 +Renderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 141506784} + m_Enabled: 0 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_LightmapIndex: 255 + m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} + m_Materials: + - {fileID: 2100000, guid: cf27db5b36385ff4eb67c47fd9d428f9, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 0 + m_LightProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_SortingLayerID: 0 +--- !u!65 &141506790 +BoxCollider: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 141506784} + m_Material: {fileID: 13400000, guid: 012328ad8a154434cba351198ab57633, type: 2} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &141506791 +MeshFilter: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 141506784} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} --- !u!1 &146718571 GameObject: m_ObjectHideFlags: 0 @@ -579,36 +704,73 @@ MeshFilter: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 410197318} m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &437867467 +--- !u!1 &434483767 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} serializedVersion: 4 m_Component: - - 4: {fileID: 437867469} - - 212: {fileID: 437867468} - - 114: {fileID: 437867470} + - 4: {fileID: 434483768} + - 212: {fileID: 434483771} + - 95: {fileID: 434483770} + - 114: {fileID: 434483769} m_Layer: 0 - m_Name: Sprite + m_Name: poser2_0 m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!212 &437867468 +--- !u!4 &434483768 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 434483767} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -2.15243292, y: .200000137, z: 0} + m_LocalScale: {x: 5, y: 5, z: 1} + m_Children: [] + m_Father: {fileID: 141506785} +--- !u!114 &434483769 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 434483767} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 40684efec06376d45b9c87a038a40253, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!95 &434483770 +Animator: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 434483767} + m_Enabled: 1 + m_Avatar: {fileID: 0} + m_Controller: {fileID: 9100000, guid: 0e6e6ed32792d450e95d8cc18b204166, type: 2} + m_CullingMode: 0 + m_ApplyRootMotion: 1 + m_AnimatePhysics: 0 + m_HasTransformHierarchy: 1 +--- !u!212 &434483771 SpriteRenderer: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 437867467} + m_GameObject: {fileID: 434483767} m_Enabled: 1 m_CastShadows: 0 m_ReceiveShadows: 0 m_LightmapIndex: 255 m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} m_Materials: - - {fileID: 2100000, guid: cf27db5b36385ff4eb67c47fd9d428f9, type: 2} + - {fileID: 10754, guid: 0000000000000000e000000000000000, type: 0} m_SubsetIndices: m_StaticBatchRoot: {fileID: 0} m_UseLightProbes: 0 @@ -617,33 +779,8 @@ SpriteRenderer: m_SortingLayer: 0 m_SortingOrder: 0 m_SortingLayerID: 0 - m_Sprite: {fileID: 21300000, guid: 0d3c405841214de46abddb0ee8bffb88, type: 3} + m_Sprite: {fileID: 21300000, guid: 47c59ffe452059a43afe37861e97dcd6, type: 3} m_Color: {r: 1, g: 1, b: 1, a: 1} ---- !u!4 &437867469 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 437867467} - m_LocalRotation: {x: .382683486, y: 0, z: 0, w: .923879564} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 2.5, y: 2.5, z: 1} - m_Children: [] - m_Father: {fileID: 134611200} ---- !u!114 &437867470 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 437867467} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 704d6d277dc28fa4c8a6a28688efd5a3, type: 3} - m_Name: - m_EditorClassIdentifier: - columns: 2 - rows: 2 - framesPerSecond: 10 --- !u!1 &493161365 GameObject: m_ObjectHideFlags: 0 @@ -734,6 +871,7 @@ GameObject: - 4: {fileID: 544670123} - 212: {fileID: 544670122} - 95: {fileID: 544670121} + - 114: {fileID: 544670124} m_Layer: 0 m_Name: poser2_0 m_TagString: Untagged @@ -785,10 +923,21 @@ Transform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 544670120} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -21.5177898, y: -9.08643723, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} + m_LocalPosition: {x: 6.4847455, y: .200000137, z: 0} + m_LocalScale: {x: 5, y: 5, z: 1} m_Children: [] - m_Father: {fileID: 0} + m_Father: {fileID: 134611200} +--- !u!114 &544670124 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 544670120} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b933d79988a624405b43ff0fb8c3d527, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &582022781 GameObject: m_ObjectHideFlags: 0 @@ -840,106 +989,6 @@ SphereCollider: serializedVersion: 2 m_Radius: .5 m_Center: {x: 0, y: 0, z: 0} ---- !u!1 &680206382 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 4: {fileID: 680206388} - - 33: {fileID: 680206387} - - 65: {fileID: 680206386} - - 23: {fileID: 680206385} - - 114: {fileID: 680206384} - - 54: {fileID: 680206383} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!54 &680206383 -Rigidbody: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 680206382} - serializedVersion: 2 - m_Mass: .100000001 - m_Drag: 0 - m_AngularDrag: .0500000007 - m_UseGravity: 0 - m_IsKinematic: 0 - m_Interpolate: 0 - m_Constraints: 112 - m_CollisionDetection: 0 ---- !u!114 &680206384 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 680206382} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4fe625f347cd04ec0b5f461f77005c35, type: 3} - m_Name: - m_EditorClassIdentifier: - speed: 10 - dir: {x: 0, y: 0, z: 0} - randomMove: 1 ---- !u!23 &680206385 -Renderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 680206382} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_LightmapIndex: 255 - m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} - m_Materials: - - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_UseLightProbes: 0 - m_LightProbeAnchor: {fileID: 0} - m_ScaleInLightmap: 1 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_SortingLayerID: 0 ---- !u!65 &680206386 -BoxCollider: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 680206382} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &680206387 -MeshFilter: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 680206382} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &680206388 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 680206382} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -4.43836355, y: 7.95759249, z: -3.5485301} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 704683992} --- !u!1 &704683991 GameObject: m_ObjectHideFlags: 0 @@ -965,15 +1014,9 @@ Transform: m_LocalPosition: {x: -.449039459, y: -7.13483524, z: 2.61688232} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - - {fileID: 680206388} - - {fileID: 787766222} - - {fileID: 792733539} - - {fileID: 1152010659} - - {fileID: 1208774881} - - {fileID: 1603241070} - - {fileID: 1951656536} - - {fileID: 2017533897} - {fileID: 134611200} + - {fileID: 1777333547} + - {fileID: 141506785} m_Father: {fileID: 0} --- !u!1 &710538756 GameObject: @@ -1192,206 +1235,6 @@ MonoBehaviour: columns: 1 rows: 2 framesPerSecond: 10 ---- !u!1 &787766216 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 4: {fileID: 787766222} - - 33: {fileID: 787766221} - - 65: {fileID: 787766220} - - 23: {fileID: 787766219} - - 114: {fileID: 787766218} - - 54: {fileID: 787766217} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!54 &787766217 -Rigidbody: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 787766216} - serializedVersion: 2 - m_Mass: .100000001 - m_Drag: 0 - m_AngularDrag: .0500000007 - m_UseGravity: 0 - m_IsKinematic: 0 - m_Interpolate: 0 - m_Constraints: 112 - m_CollisionDetection: 0 ---- !u!114 &787766218 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 787766216} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4fe625f347cd04ec0b5f461f77005c35, type: 3} - m_Name: - m_EditorClassIdentifier: - speed: 10 - dir: {x: 0, y: 0, z: 0} - randomMove: 1 ---- !u!23 &787766219 -Renderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 787766216} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_LightmapIndex: 255 - m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} - m_Materials: - - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_UseLightProbes: 0 - m_LightProbeAnchor: {fileID: 0} - m_ScaleInLightmap: 1 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_SortingLayerID: 0 ---- !u!65 &787766220 -BoxCollider: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 787766216} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &787766221 -MeshFilter: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 787766216} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &787766222 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 787766216} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 1.18134069, y: 7.95759249, z: -2.75285101} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 704683992} ---- !u!1 &792733533 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 4: {fileID: 792733539} - - 33: {fileID: 792733538} - - 65: {fileID: 792733537} - - 23: {fileID: 792733536} - - 114: {fileID: 792733535} - - 54: {fileID: 792733534} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!54 &792733534 -Rigidbody: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 792733533} - serializedVersion: 2 - m_Mass: .100000001 - m_Drag: 0 - m_AngularDrag: .0500000007 - m_UseGravity: 0 - m_IsKinematic: 0 - m_Interpolate: 0 - m_Constraints: 112 - m_CollisionDetection: 0 ---- !u!114 &792733535 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 792733533} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4fe625f347cd04ec0b5f461f77005c35, type: 3} - m_Name: - m_EditorClassIdentifier: - speed: 10 - dir: {x: 0, y: 0, z: 0} - randomMove: 1 ---- !u!23 &792733536 -Renderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 792733533} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_LightmapIndex: 255 - m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} - m_Materials: - - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_UseLightProbes: 0 - m_LightProbeAnchor: {fileID: 0} - m_ScaleInLightmap: 1 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_SortingLayerID: 0 ---- !u!65 &792733537 -BoxCollider: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 792733533} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &792733538 -MeshFilter: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 792733533} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &792733539 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 792733533} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 2.03917575, y: 7.95759249, z: -.65542376} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 704683992} --- !u!1 &815705938 GameObject: m_ObjectHideFlags: 0 @@ -1615,6 +1458,83 @@ SphereCollider: serializedVersion: 2 m_Radius: .5 m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &1042289326 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 1042289327} + - 212: {fileID: 1042289330} + - 95: {fileID: 1042289329} + - 114: {fileID: 1042289328} + m_Layer: 0 + m_Name: poser2_0 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1042289327 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1042289326} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: .200000137, z: -6.85518265} + m_LocalScale: {x: 5, y: 5, z: 1} + m_Children: [] + m_Father: {fileID: 1777333547} +--- !u!114 &1042289328 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1042289326} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b933d79988a624405b43ff0fb8c3d527, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!95 &1042289329 +Animator: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1042289326} + m_Enabled: 1 + m_Avatar: {fileID: 0} + m_Controller: {fileID: 9100000, guid: 0e6e6ed32792d450e95d8cc18b204166, type: 2} + m_CullingMode: 0 + m_ApplyRootMotion: 1 + m_AnimatePhysics: 0 + m_HasTransformHierarchy: 1 +--- !u!212 &1042289330 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1042289326} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_LightmapIndex: 255 + m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} + m_Materials: + - {fileID: 10754, guid: 0000000000000000e000000000000000, type: 0} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 0 + m_LightProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_SortingLayerID: 0 + m_Sprite: {fileID: 21300000, guid: 47c59ffe452059a43afe37861e97dcd6, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} --- !u!1 &1043241741 GameObject: m_ObjectHideFlags: 0 @@ -1643,106 +1563,6 @@ Transform: - {fileID: 1779026304} - {fileID: 710538758} m_Father: {fileID: 0} ---- !u!1 &1152010653 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 4: {fileID: 1152010659} - - 33: {fileID: 1152010658} - - 65: {fileID: 1152010657} - - 23: {fileID: 1152010656} - - 114: {fileID: 1152010655} - - 54: {fileID: 1152010654} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!54 &1152010654 -Rigidbody: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1152010653} - serializedVersion: 2 - m_Mass: .100000001 - m_Drag: 0 - m_AngularDrag: .0500000007 - m_UseGravity: 0 - m_IsKinematic: 0 - m_Interpolate: 0 - m_Constraints: 112 - m_CollisionDetection: 0 ---- !u!114 &1152010655 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1152010653} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4fe625f347cd04ec0b5f461f77005c35, type: 3} - m_Name: - m_EditorClassIdentifier: - speed: 10 - dir: {x: 0, y: 0, z: 0} - randomMove: 1 ---- !u!23 &1152010656 -Renderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1152010653} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_LightmapIndex: 255 - m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} - m_Materials: - - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_UseLightProbes: 0 - m_LightProbeAnchor: {fileID: 0} - m_ScaleInLightmap: 1 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_SortingLayerID: 0 ---- !u!65 &1152010657 -BoxCollider: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1152010653} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1152010658 -MeshFilter: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1152010653} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1152010659 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1152010653} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2.40843821, y: 7.95759249, z: -2.04327106} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 704683992} --- !u!1 &1164596948 GameObject: m_ObjectHideFlags: 0 @@ -1783,106 +1603,6 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} ---- !u!1 &1208774875 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 4: {fileID: 1208774881} - - 33: {fileID: 1208774880} - - 65: {fileID: 1208774879} - - 23: {fileID: 1208774878} - - 114: {fileID: 1208774877} - - 54: {fileID: 1208774876} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!54 &1208774876 -Rigidbody: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1208774875} - serializedVersion: 2 - m_Mass: .100000001 - m_Drag: 0 - m_AngularDrag: .0500000007 - m_UseGravity: 0 - m_IsKinematic: 0 - m_Interpolate: 0 - m_Constraints: 112 - m_CollisionDetection: 0 ---- !u!114 &1208774877 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1208774875} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4fe625f347cd04ec0b5f461f77005c35, type: 3} - m_Name: - m_EditorClassIdentifier: - speed: 10 - dir: {x: 0, y: 0, z: 0} - randomMove: 1 ---- !u!23 &1208774878 -Renderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1208774875} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_LightmapIndex: 255 - m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} - m_Materials: - - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_UseLightProbes: 0 - m_LightProbeAnchor: {fileID: 0} - m_ScaleInLightmap: 1 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_SortingLayerID: 0 ---- !u!65 &1208774879 -BoxCollider: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1208774875} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1208774880 -MeshFilter: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1208774875} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1208774881 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1208774875} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -2.10307217, y: 7.95759249, z: -4.88158178} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 704683992} --- !u!1 &1280434885 GameObject: m_ObjectHideFlags: 0 @@ -2048,106 +1768,6 @@ Transform: m_Children: - {fileID: 493161366} m_Father: {fileID: 0} ---- !u!1 &1603241064 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 4: {fileID: 1603241070} - - 33: {fileID: 1603241069} - - 65: {fileID: 1603241068} - - 23: {fileID: 1603241067} - - 114: {fileID: 1603241066} - - 54: {fileID: 1603241065} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!54 &1603241065 -Rigidbody: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1603241064} - serializedVersion: 2 - m_Mass: .100000001 - m_Drag: 0 - m_AngularDrag: .0500000007 - m_UseGravity: 0 - m_IsKinematic: 0 - m_Interpolate: 0 - m_Constraints: 112 - m_CollisionDetection: 0 ---- !u!114 &1603241066 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1603241064} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4fe625f347cd04ec0b5f461f77005c35, type: 3} - m_Name: - m_EditorClassIdentifier: - speed: 10 - dir: {x: 0, y: 0, z: 0} - randomMove: 1 ---- !u!23 &1603241067 -Renderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1603241064} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_LightmapIndex: 255 - m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} - m_Materials: - - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_UseLightProbes: 0 - m_LightProbeAnchor: {fileID: 0} - m_ScaleInLightmap: 1 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_SortingLayerID: 0 ---- !u!65 &1603241068 -BoxCollider: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1603241064} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1603241069 -MeshFilter: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1603241064} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1603241070 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1603241064} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 3.56829953, y: 7.95759249, z: -3.85334492} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 704683992} --- !u!1 &1605196873 GameObject: m_ObjectHideFlags: 0 @@ -2246,6 +1866,131 @@ Transform: - {fileID: 1517894752} - {fileID: 330466715} m_Father: {fileID: 0} +--- !u!1 &1777333546 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 4 + m_Component: + - 4: {fileID: 1777333547} + - 33: {fileID: 1777333553} + - 65: {fileID: 1777333552} + - 23: {fileID: 1777333551} + - 54: {fileID: 1777333550} + - 195: {fileID: 1777333549} + - 114: {fileID: 1777333548} + m_Layer: 0 + m_Name: Patron + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1777333547 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1777333546} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -5.0881815, y: 8.99458694, z: 4.92175865} + m_LocalScale: {x: 2, y: 3, z: 2} + m_Children: + - {fileID: 1042289327} + m_Father: {fileID: 704683992} +--- !u!114 &1777333548 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1777333546} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fc3037736f75b53479f5da8bd507b6eb, type: 3} + m_Name: + m_EditorClassIdentifier: + destinations: + - {fileID: 582022781} + - {fileID: 973833183} + currentDestIndex: 1 + evilMat: {fileID: 2100000, guid: f259c2b0e77aaec4da868f7cc2a94f99, type: 2} + neutralMat: {fileID: 2100000, guid: cf27db5b36385ff4eb67c47fd9d428f9, type: 2} +--- !u!195 &1777333549 +NavMeshAgent: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1777333546} + m_Enabled: 1 + m_Radius: .5 + m_Speed: 5 + m_Acceleration: 10000 + avoidancePriority: 50 + m_AngularSpeed: 120 + m_StoppingDistance: 0 + m_AutoTraverseOffMeshLink: 1 + m_AutoBraking: 1 + m_AutoRepath: 1 + m_Height: 1.00000012 + m_BaseOffset: .50000006 + m_WalkableMask: 4294967295 + m_ObstacleAvoidanceType: 4 +--- !u!54 &1777333550 +Rigidbody: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1777333546} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: .0500000007 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 112 + m_CollisionDetection: 0 +--- !u!23 &1777333551 +Renderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1777333546} + m_Enabled: 0 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_LightmapIndex: 255 + m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} + m_Materials: + - {fileID: 2100000, guid: cf27db5b36385ff4eb67c47fd9d428f9, type: 2} + m_SubsetIndices: + m_StaticBatchRoot: {fileID: 0} + m_UseLightProbes: 0 + m_LightProbeAnchor: {fileID: 0} + m_ScaleInLightmap: 1 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_SortingLayerID: 0 +--- !u!65 &1777333552 +BoxCollider: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1777333546} + m_Material: {fileID: 13400000, guid: 012328ad8a154434cba351198ab57633, type: 2} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!33 &1777333553 +MeshFilter: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1777333546} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} --- !u!1 &1779026302 GameObject: m_ObjectHideFlags: 0 @@ -2377,106 +2122,6 @@ Transform: m_LocalScale: {x: 30, y: 5, z: .5} m_Children: [] m_Father: {fileID: 1731015427} ---- !u!1 &1951656530 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 4: {fileID: 1951656536} - - 33: {fileID: 1951656535} - - 65: {fileID: 1951656534} - - 23: {fileID: 1951656533} - - 114: {fileID: 1951656532} - - 54: {fileID: 1951656531} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!54 &1951656531 -Rigidbody: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1951656530} - serializedVersion: 2 - m_Mass: .100000001 - m_Drag: 0 - m_AngularDrag: .0500000007 - m_UseGravity: 0 - m_IsKinematic: 0 - m_Interpolate: 0 - m_Constraints: 112 - m_CollisionDetection: 0 ---- !u!114 &1951656532 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1951656530} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4fe625f347cd04ec0b5f461f77005c35, type: 3} - m_Name: - m_EditorClassIdentifier: - speed: 10 - dir: {x: 0, y: 0, z: 0} - randomMove: 1 ---- !u!23 &1951656533 -Renderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1951656530} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_LightmapIndex: 255 - m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} - m_Materials: - - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_UseLightProbes: 0 - m_LightProbeAnchor: {fileID: 0} - m_ScaleInLightmap: 1 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_SortingLayerID: 0 ---- !u!65 &1951656534 -BoxCollider: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1951656530} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &1951656535 -MeshFilter: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1951656530} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &1951656536 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 1951656530} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 1.12245011, y: 7.95759249, z: -5.33175468} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 704683992} --- !u!1 &2004495480 GameObject: m_ObjectHideFlags: 0 @@ -2554,7 +2199,7 @@ Transform: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 2004495480} m_LocalRotation: {x: .382683486, y: 0, z: 0, w: .923879564} - m_LocalPosition: {x: 0, y: 10, z: -10} + m_LocalPosition: {x: 0, y: 5, z: -5} m_LocalScale: {x: .75, y: .962499857, z: .962499976} m_Children: [] m_Father: {fileID: 0} @@ -2570,103 +2215,3 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: player: {fileID: 146718571} ---- !u!1 &2017533891 -GameObject: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - serializedVersion: 4 - m_Component: - - 4: {fileID: 2017533897} - - 33: {fileID: 2017533896} - - 65: {fileID: 2017533895} - - 23: {fileID: 2017533894} - - 114: {fileID: 2017533893} - - 54: {fileID: 2017533892} - m_Layer: 0 - m_Name: Cube - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!54 &2017533892 -Rigidbody: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2017533891} - serializedVersion: 2 - m_Mass: .100000001 - m_Drag: 0 - m_AngularDrag: .0500000007 - m_UseGravity: 0 - m_IsKinematic: 0 - m_Interpolate: 0 - m_Constraints: 112 - m_CollisionDetection: 0 ---- !u!114 &2017533893 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2017533891} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4fe625f347cd04ec0b5f461f77005c35, type: 3} - m_Name: - m_EditorClassIdentifier: - speed: 10 - dir: {x: 0, y: 0, z: 0} - randomMove: 1 ---- !u!23 &2017533894 -Renderer: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2017533891} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_LightmapIndex: 255 - m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} - m_Materials: - - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0} - m_SubsetIndices: - m_StaticBatchRoot: {fileID: 0} - m_UseLightProbes: 0 - m_LightProbeAnchor: {fileID: 0} - m_ScaleInLightmap: 1 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_SortingLayerID: 0 ---- !u!65 &2017533895 -BoxCollider: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2017533891} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!33 &2017533896 -MeshFilter: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2017533891} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &2017533897 -Transform: - m_ObjectHideFlags: 0 - m_PrefabParentObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} - m_GameObject: {fileID: 2017533891} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -.896113873, y: 7.95759249, z: -2.94195986} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 704683992} diff --git a/Assets/Scripts/Demon.cs b/Assets/Scripts/Demon.cs new file mode 100644 index 0000000..d4cdd4c --- /dev/null +++ b/Assets/Scripts/Demon.cs @@ -0,0 +1,19 @@ +using UnityEngine; +using System.Collections; + +public class Demon : MonoBehaviour { + + void OnTriggerEnter(Collider other) { + + //Instantiate(explosion, transform.position, transform.rotation); + if (other.tag == "Shank") + { + //Instantiate (playerExplosion, other.transform.position, other.transform.rotation); + Destroy(gameObject); + } + + if (other.tag == "VVAura") { + renderer.material.color = Color.red; + } + } +} diff --git a/Assets/Scripts/Demon.cs.meta b/Assets/Scripts/Demon.cs.meta new file mode 100644 index 0000000..683eacb --- /dev/null +++ b/Assets/Scripts/Demon.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 40684efec06376d45b9c87a038a40253 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/Scripts/NavPoint.cs b/Assets/Scripts/NavPoint.cs index 98316b1..8cd7200 100644 --- a/Assets/Scripts/NavPoint.cs +++ b/Assets/Scripts/NavPoint.cs @@ -3,7 +3,7 @@ using System.Collections; public class NavPoint : MonoBehaviour { void OnTriggerEnter(Collider other) { - Patron p = other.gameObject.GetComponent(); + WalkAI p = other.gameObject.GetComponent(); if(p != null) p.NextDest(); } diff --git a/Assets/Scripts/Patron.cs b/Assets/Scripts/Patron.cs index fbbe77e..6783a76 100644 --- a/Assets/Scripts/Patron.cs +++ b/Assets/Scripts/Patron.cs @@ -3,28 +3,6 @@ using System.Collections; public class Patron : MonoBehaviour { - public GameObject[] destinations; - public int currentDestIndex = 0; - public Material evilMat; - public Material neutralMat; - - private NavMeshAgent nva; - - void Awake() { - nva = GetComponent(); - nva.updateRotation = false; - nva.SetDestination(destinations[currentDestIndex].transform.position); - } - - public void NextDest() { - if(currentDestIndex + 1 < destinations.Length) - ++currentDestIndex; - else - currentDestIndex = 0; - - nva.SetDestination(destinations[currentDestIndex].transform.position); - } - void OnTriggerEnter(Collider other) { //Instantiate(explosion, transform.position, transform.rotation); @@ -33,14 +11,5 @@ public class Patron : MonoBehaviour { //Instantiate (playerExplosion, other.transform.position, other.transform.rotation); Destroy(gameObject); } - - if (other.tag == "VVAura") { - renderer.material = evilMat; - } - -// gameController.AddScore (scoreValue); -// -// Destroy (other.gameObject); -// Destroy (gameObject); } } diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 94f07e7..104b082 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -58,8 +58,10 @@ public class PlayerController : MonoBehaviour { animator.SetBool("isWalking", true); } - if (moveHorizontal < 0) + if (moveHorizontal < 0) { playerAngle.eulerAngles = new Vector3(0f, -180f, 0f); + + } if (moveHorizontal > 0) playerAngle.eulerAngles = new Vector3(0f, 0f, 0f); if (moveVertical < 0) @@ -70,8 +72,8 @@ public class PlayerController : MonoBehaviour { Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical); rigidbody.MovePosition (rigidbody.position + movement * speed * Time.deltaTime); + rigidbody.position.Normalize (); rigidbody.freezeRotation = true; - rigidbody.position.Normalize (); } } diff --git a/Assets/Scripts/WalkAI.cs b/Assets/Scripts/WalkAI.cs new file mode 100644 index 0000000..ebd6b97 --- /dev/null +++ b/Assets/Scripts/WalkAI.cs @@ -0,0 +1,27 @@ +using UnityEngine; +using System.Collections; + +public class WalkAI : MonoBehaviour { + + public GameObject[] destinations; + public int currentDestIndex = 0; + public Material evilMat; + public Material neutralMat; + + private NavMeshAgent nva; + + void Awake() { + nva = GetComponent(); + nva.updateRotation = false; + nva.SetDestination(destinations[currentDestIndex].transform.position); + } + + public void NextDest() { + if(currentDestIndex + 1 < destinations.Length) + ++currentDestIndex; + else + currentDestIndex = 0; + + nva.SetDestination(destinations[currentDestIndex].transform.position); + } +} diff --git a/Assets/Scripts/WalkAI.cs.meta b/Assets/Scripts/WalkAI.cs.meta new file mode 100644 index 0000000..aeb5548 --- /dev/null +++ b/Assets/Scripts/WalkAI.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fc3037736f75b53479f5da8bd507b6eb +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/Sprites/Materials/brickwal-not-animatedl0.mat b/Assets/Sprites/Materials/brickwal-not-animatedl0.mat index 3a67e2f..d32a17a 100644 --- a/Assets/Sprites/Materials/brickwal-not-animatedl0.mat +++ b/Assets/Sprites/Materials/brickwal-not-animatedl0.mat @@ -19,7 +19,7 @@ Material: second: m_Texture: {fileID: 2800000, guid: 26c9dff0fed396341b045e42e3a0b500, type: 3} m_Scale: {x: 1, y: .5} - m_Offset: {x: 0, y: .5} + m_Offset: {x: 0, y: 0} m_Floats: {} m_Colors: data: diff --git a/Assets/Sprites/poser2.png.meta b/Assets/Sprites/poser2.png.meta index f90c97f..e53bb26 100644 --- a/Assets/Sprites/poser2.png.meta +++ b/Assets/Sprites/poser2.png.meta @@ -20,10 +20,10 @@ TextureImporter: grayScaleToAlpha: 0 generateCubemap: 0 seamlessCubemap: 0 - textureFormat: -1 + textureFormat: -3 maxTextureSize: 1024 textureSettings: - filterMode: -1 + filterMode: 0 aniso: 1 mipBias: -1 wrapMode: 1