Ejemplo n.º 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;
        }
    }
Ejemplo n.º 2
0
 public void SetAxisPositiveState()
 {
     CrossPlatformInputManager.SetAxisPositive(Name);
 }
 public void goRight()
 {
     Debug.Log("in goRight CustomControllerScript");
     CrossPlatformInputManager.SetAxisPositive("Horizontal");
 }