public void MovePushable()
 {
     if (currentPushable && currentPushable.Grounded)       // If in list of pushables and on the ground
     {
         currentPushable.Move(moveVector * Time.deltaTime); // Move pushable the same speed as the player.
     }
 }
예제 #2
0
 public void MovePushable()
 {
     if (currentPushable && currentPushable.Grounded)
     {
         currentPushable.Move(moveVector * Time.deltaTime);
     }
 }
예제 #3
0
    private void MoveBox(Vector3 movement)
    {
        int     isRight = playerFaceLeft ? -1 : 1;
        Vector3 tgtVec  = movement;

        try
        {
            pushTGT.Move(tgtVec);
        }
        catch (Exception E) { }
    }