Exemple #1
0
        private void SpawnAnt(string type, Vector2 position, Quaternion rotation)
        {
            MG5Ant ant = pooler.Get(type, position, rotation).GetComponent <MG5Ant>();

            ant.StartWalking(true);
            antsList.Add(ant);
        }
Exemple #2
0
 public void RemoveAnt(MG5Ant ant)
 {
     ant.gameObject.GetComponent <PooledObject>().Recycle();
     antsList.Remove(ant);
 }