コード例 #1
0
 //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;
 }
コード例 #2
0
ファイル: PoolManager.cs プロジェクト: kstisser/RhinoRaid
 public void RemoveKibble(KibbleFacade k)
 {
     _kibblePool.Despawn(k);
     _kibbles.Remove(k);
 }