示例#1
0
 // Update is called once per frame
 void FixedUpdate()
 {
     if (!ManagerPause.Pause)
     {
         if (DirecctionX > 0)
         {
             move.SetMovement(Vector2.right);
         }
         else if (DirecctionX < 0)
         {
             move.SetMovement(Vector2.right * -1);
         }
         else
         {
             move.SetMovement(Vector2.zero);
         }
     }
 }
示例#2
0
 protected override void ActionMovement(Vector2 movement)
 {
     move.SetMovement(movement);
 }