//increase the size of the food by adding the step vector //KibbleFacade is only a variable sent in because the PoolManager needs it to despawn based on the same signal private void increaseSize(KibbleFacade k) { //_poolManager.RemoveKibble(k); if (!startedEating) { startedEating = true; //trigger beagle's eat animation _beagle.eat(); } this.transform.localScale += stepVector; }
public void RemoveKibble(KibbleFacade k) { _kibblePool.Despawn(k); _kibbles.Remove(k); }