// Use this for initialization void Start() { collision = null; hunting = false; start = false; scProto = this.GetComponent <ProtoTypeEnemy>(); scFallinHole = this.GetComponent <FallInHolEnemy>(); scRusher = this.GetComponent <RusherDamage>(); }
public IEnumerator SpawnEnemies() { for (int i = 0; i < 4; i++) { scProto = Enemies[i].GetComponent <ProtoTypeEnemy>(); scFallinHole = Enemies[i].GetComponent <FallInHolEnemy>(); scRusherDamage = Enemies[i].GetComponent <RusherDamage>(); scProto.enabled = true; scFallinHole.enabled = true; scRusherDamage.enabled = true; yield return(new WaitForSeconds(2)); } }
// Use this for initialization void Start() { bDrag1 = false; bDrag2 = false; scProto = GetComponent <ProtoTypeEnemy>(); }