public void DisplayControls()
    {
        bControlsActive = true;
        conTog.isOn     = true;
        touches.transform.localScale = Vector3.one;

        fixedJoystick.GetComponent <FixedJoystick>().JoystickPosition();
    }
Esempio n. 2
0
    public void DisplayControls()
    {
        transform.localScale = Vector3.one;

        leftFixedJoystick.GetComponent <FixedJoystick>().JoystickPosition();
        rightFixedJoystick.GetComponent <FixedJoystick>().JoystickPosition();
    }
Esempio n. 3
0
 void GiveControl(Transform curPlayer, GameObject activeCam, GameObject nonCam)
 {
     if (FixedJS)
     {
         FJS.GetComponent <FixedJoystick>().player = curPlayer;
     }
     else
     {
         JS.GetComponent <Joystick>().player = curPlayer;
     }
     activeCam.SetActive(true);
     nonCam.SetActive(false);
 }
Esempio n. 4
0
 // Start is called before the first frame update
 void Start()
 {
     joystick = joystick.GetComponent <FixedJoystick>();
     mover    = GetComponent <Mover>();
     animator = GetComponent <Animator>();
 }