示例#1
0
    private void SpawnAnt()
    {
        AntController ant = remainingAntsToSpawn[0];

        ant.GetComponent <Collider2D>().enabled = true;
        ant.transform.position = transform.position;
        ant.gameObject.SetActive(true);
        AntsManager.ReturnAntToActives(ant);
        remainingAntsToSpawn.RemoveAt(0);
    }
示例#2
0
 private void SpawnAntLeader()
 {
     antLeaderToSpawn.transform.position = transform.position;
     antLeaderToSpawn.transform.rotation = transform.rotation;
     antLeaderToSpawn.GetComponent <Collider2D>().enabled = true;
     antLeaderToSpawn.gameObject.SetActive(true);
     AntsManager.ReturnAntToActives(antLeaderToSpawn);
     antLeaderToSpawn.MoveForwardAuto();
     tutorial.antLeader = antLeaderToSpawn;
 }