public void DisplayControls() { bControlsActive = true; conTog.isOn = true; touches.transform.localScale = Vector3.one; fixedJoystick.GetComponent <FixedJoystick>().JoystickPosition(); }
public void DisplayControls() { transform.localScale = Vector3.one; leftFixedJoystick.GetComponent <FixedJoystick>().JoystickPosition(); rightFixedJoystick.GetComponent <FixedJoystick>().JoystickPosition(); }
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); }
// Start is called before the first frame update void Start() { joystick = joystick.GetComponent <FixedJoystick>(); mover = GetComponent <Mover>(); animator = GetComponent <Animator>(); }