示例#1
0
 private void Move(Vector2 direction)
 {
     if (Mathf.Abs(direction.x) > Mathf.Abs(direction.y))
     {
         if (direction.x > 0)
         {
             cubeClass.SetMovePoint(Vector2.right);
         }
         else
         {
             cubeClass.SetMovePoint(Vector2.left);
         }
     }
 }