public void Remove(WachinEnemigo wachin) { wachines.Remove(wachin); if (!patrullas.Contains(this)) { Debug.LogError("(remove) Super RARO!"); } if (wachines.Count == 0) { patrullas.Remove(this); } }
public void Add(WachinEnemigo wachin) { if (wachines.Count == 0) { destinoPatrulla = wachin.transform.position; if (patrullas.Contains(this)) { Debug.LogError("(add) Super RARO!"); } patrullas.Add(this); } wachines.Add(wachin); }