public void ControlJoystickInput(GameConstants.JoystickControlMessage joystickControl, float XValue, float YValue) { switch (joystickControl) { case GameConstants.JoystickControlMessage.MoveJoystick: MoveJoystick(XValue, YValue); break; default: break; } }
public void ControlJoystickToggle(GameConstants.JoystickControlMessage joystickControl, bool value) { //Debug.Log("Control Joystick Toggle " + joystickControl.ToString() + " Value" + value); switch (joystickControl) { case GameConstants.JoystickControlMessage.MoveJoystick: ToggleJoystick(value); break; default: break; } }