// Update is called once per frame void Update() { if (Joystick != null) { Joystick.On_Manual(new Vector2(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"))); } }
// Update is called once per frame void Update() { if (Application.platform == RuntimePlatform.WindowsPlayer) { if (Joystick != null) { Joystick.visible = false; Joystick.On_Manual(new Vector2(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"))); } } }