Esempio n. 1
0
 private void UpdatePushing()
 {
     if (!UpdateAnimation)
     {
         return;
     }
     if (IsPushing() && PushSensor.IsColliding())
     {
         var collider = PushSensor.GetCollider() as IPushable;
         collider?.Push(Facing);
     }
 }