Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     collision    = null;
     hunting      = false;
     start        = false;
     scProto      = this.GetComponent <ProtoTypeEnemy>();
     scFallinHole = this.GetComponent <FallInHolEnemy>();
     scRusher     = this.GetComponent <RusherDamage>();
 }
Ejemplo n.º 2
0
    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));
        }
    }