Example #1
0
 public void Push(HomeObject objToPush, Vector3 position)
 {
     animator.SetTrigger("Push");
     animator.SetFloat("DirX", direction.x);
     animator.SetFloat("DirY", direction.y);
     if (!objToPush.BeingPushed(this, position))
     {
         BeConfused();
     }
 }