Commit 27421e9b authored by RaptorTwitch's avatar RaptorTwitch

SeekerAI Settings;

parent c401f375
......@@ -27,7 +27,7 @@ PrefabInstance:
- target: {fileID: 5822399462431454569, guid: b0f14b53e42262242b95e3e5892baf9f,
type: 3}
propertyPath: m_LocalPosition.x
value: -1.06
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5822399462431454569, guid: b0f14b53e42262242b95e3e5892baf9f,
type: 3}
......@@ -37,12 +37,12 @@ PrefabInstance:
- target: {fileID: 5822399462431454569, guid: b0f14b53e42262242b95e3e5892baf9f,
type: 3}
propertyPath: m_LocalPosition.z
value: -1.05
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5822399462431454569, guid: b0f14b53e42262242b95e3e5892baf9f,
type: 3}
propertyPath: m_LocalRotation.x
value: 0.7071068
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5822399462431454569, guid: b0f14b53e42262242b95e3e5892baf9f,
type: 3}
......@@ -57,7 +57,7 @@ PrefabInstance:
- target: {fileID: 5822399462431454569, guid: b0f14b53e42262242b95e3e5892baf9f,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.7071068
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5822399462431454569, guid: b0f14b53e42262242b95e3e5892baf9f,
type: 3}
......@@ -67,7 +67,7 @@ PrefabInstance:
- target: {fileID: 5822399462431454569, guid: b0f14b53e42262242b95e3e5892baf9f,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 90
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5822399462431454569, guid: b0f14b53e42262242b95e3e5892baf9f,
type: 3}
......@@ -79,6 +79,21 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5822399462431454569, guid: b0f14b53e42262242b95e3e5892baf9f,
type: 3}
propertyPath: m_LocalScale.x
value: 2
objectReference: {fileID: 0}
- target: {fileID: 5822399462431454569, guid: b0f14b53e42262242b95e3e5892baf9f,
type: 3}
propertyPath: m_LocalScale.y
value: 2
objectReference: {fileID: 0}
- target: {fileID: 5822399462431454569, guid: b0f14b53e42262242b95e3e5892baf9f,
type: 3}
propertyPath: m_LocalScale.z
value: 2
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: b0f14b53e42262242b95e3e5892baf9f, type: 3}
--- !u!1 &436640341521505314 stripped
......
......@@ -23,7 +23,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 141141649259298211}
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067}
m_LocalRotation: {x: 0, y: 0.7072302, z: 0.7069834, w: 0}
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalScale: {x: 100, y: 100, z: 100}
m_Children:
......@@ -31,7 +31,7 @@ Transform:
- {fileID: 308448015626709997}
m_Father: {fileID: 4549998171761708480}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: -89.98, y: 180, z: 0}
--- !u!1 &167988787682844359
GameObject:
m_ObjectHideFlags: 0
......@@ -74,9 +74,10 @@ GameObject:
- component: {fileID: 5885875939041878202}
- component: {fileID: -7032714091151265289}
- component: {fileID: -597582237068271772}
- component: {fileID: 4780192179537917166}
m_Layer: 0
m_Name: TurtleSeeker
m_TagString: Untagged
m_TagString: Enemy
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
......@@ -90,7 +91,7 @@ Transform:
m_GameObject: {fileID: 684422770152341459}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.1, y: 0.1, z: 0.1}
m_LocalScale: {x: 0.15, y: 0.15, z: 0.15}
m_Children:
- {fileID: 5360712816303871490}
- {fileID: 1469172663092512014}
......@@ -109,7 +110,7 @@ Animator:
m_GameObject: {fileID: 684422770152341459}
m_Enabled: 1
m_Avatar: {fileID: 9000000, guid: 19dc04366e85f6b42aa59d37818d7653, type: 3}
m_Controller: {fileID: 0}
m_Controller: {fileID: 9100000, guid: aaa53b31d94f92e4081cb70a0721fbf7, type: 2}
m_CullingMode: 1
m_UpdateMode: 0
m_ApplyRootMotion: 0
......@@ -146,13 +147,26 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 5171ed1e23f0f304494186a7e109be60, type: 3}
m_Name:
m_EditorClassIdentifier:
vel: 2.5
vel: 5
vomit: {fileID: 0}
rotationVel: 2.5
rotationVel: 200
TurretAnchor:
- {fileID: 1387220612188179555}
- {fileID: 2620027465756984677}
firerate: 0.5
--- !u!65 &4780192179537917166
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 684422770152341459}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 7, y: 5, z: 7}
m_Center: {x: 0, y: 2, z: 0}
--- !u!1 &1387220612188179555
GameObject:
m_ObjectHideFlags: 0
......@@ -482,7 +496,7 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7949495823156106357}
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalScale: {x: 0.01, y: 0.01, z: 0.01}
m_Children: []
......@@ -599,8 +613,8 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8489481556079216237}
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071067}
m_LocalPosition: {x: -0, y: 0, z: 0}
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 6515847041453359535}
......@@ -610,7 +624,7 @@ Transform:
- {fileID: 5708452920995750931}
m_Father: {fileID: 5360712816303871490}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
--- !u!1 &8660106765129751097
GameObject:
m_ObjectHideFlags: 0
......
......@@ -54,7 +54,7 @@ public class SeekerAI : MonoBehaviour
public void activate()
{
alive = true;
StartCoroutine("ShotDelay");
StartCoroutine("DelayFire");
}
// Update is called once per frame
......@@ -66,7 +66,7 @@ public class SeekerAI : MonoBehaviour
if (Vector3.Distance(transform.position, navpoints[dest].position) == 0 && dest < navpoints.Length - 1)
{
dest = Random.Range(0, 18);
dest = Random.Range(0, 12);
}
Vector3 pos = player.transform.position - transform.position;
......
......@@ -34,7 +34,7 @@ public class ToidHeart : MonoBehaviour
int rng = Random.Range(0, 100);
if(rng <= dropChance)
Instantiate(pickup, transform.position, Quaternion.identity);
Instantiate(explosion, this.transform.position, this.transform.rotation);
Instantiate(explosion, this.transform.position, Quaternion.Euler(90, transform.rotation.y, transform.rotation.z));
Destroy(gameObject);
}
......
......@@ -8,6 +8,7 @@ public class GameMaster : MonoBehaviour
public GameObject playerModel; //Prefab Reference
public GameObject toidBasicModel;
public GameObject toidTurretModel;
public GameObject toidSeekerModel;
public EnemyBullet eBullet;
public Transform cam;
public GameObject canvas;
......@@ -161,6 +162,8 @@ public class GameMaster : MonoBehaviour
StartCoroutine(coroutine1);
StartCoroutine(coroutine2);
SpawnSeekerToid();
}
void SpawnBasicToid()
......@@ -191,6 +194,18 @@ public class GameMaster : MonoBehaviour
}
}
void SpawnSeekerToid()
{
SeekerAI toid;
toid = Instantiate(toidSeekerModel, tileNavPoints[0].position, Quaternion.Euler(0, 180, 0)).GetComponent<SeekerAI>();
toid.setNavPoints(tileNavPoints);
toid.setGameMaster(this);
toid.setPlayer(player);
toid.gameObject.GetComponent<ToidHeart>().setGameMaster(this);
toid.activate();
currentEnemies++;
}
public void ReportDeath()
{
currentEnemies--;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment