Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (Joystick != null)
     {
         Joystick.On_Manual(new Vector2(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical")));
     }
 }
Пример #2
0
 // 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")));
         }
     }
 }