// Use this for initialization void Start() { mSpawnTimer = SpawnTime; mSpawnChangeCount = SpawnChangeNum; randExpType(); mSpawnMng = GameObject.Find("Spawners").GetComponent <spawnMng> (); }
// Use this for initialization void Start() { mLife = Life; switch (EnemyType) { case eEnemyType.Normal: break; case eEnemyType.NormalRange: break; case eEnemyType.Fly: GetComponent <Rigidbody> ().useGravity = false; break; case eEnemyType.FlyRange: GetComponent <Rigidbody> ().useGravity = false; break; } updateColor(); mSpawnMng = GameObject.Find("Spawners").GetComponent <spawnMng> (); }