void Start() { #if UNITY_IPHONE || UNITY_ANDROID || UNITY_WEBGL fixedJoystick = GameObject.Find("Right Joystick").GetComponent <FixedJoystick>(); #endif playerMovement = GetComponent <TrialPlayerMovement>(); joystickDirection = Vector3.forward; transform.forward = joystickDirection; canShoot = true; }
private void Start() { player = FindObjectOfType <TrialPlayerMovement>(); }