Пример #1
0
    private void Move()
    {
        switch (direction)
        {
        case Direction.Up:
            CrossPlatformInputManager.SetAxisPositive("Vertical");
            break;

        case Direction.Down:
            CrossPlatformInputManager.SetAxisNegative("Vertical");
            break;

        case Direction.Right:
            CrossPlatformInputManager.SetAxisPositive("Horizontal");
            break;

        case Direction.Left:
            CrossPlatformInputManager.SetAxisNegative("Horizontal");
            break;

        default:

            break;
        }
    }
Пример #2
0
 public void SetAxisNegativeState()
 {
     CrossPlatformInputManager.SetAxisNegative(Name);
 }
 public void goLeft()
 {
     Debug.Log("in goLeft CustomControllerScript");
     CrossPlatformInputManager.SetAxisNegative("Horizontal");
 }