private void SpawnAnt(string type, Vector2 position, Quaternion rotation) { MG5Ant ant = pooler.Get(type, position, rotation).GetComponent <MG5Ant>(); ant.StartWalking(true); antsList.Add(ant); }
public void RemoveAnt(MG5Ant ant) { ant.gameObject.GetComponent <PooledObject>().Recycle(); antsList.Remove(ant); }