Esempio n. 1
0
    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;
    }
Esempio n. 2
0
 private void Start()
 {
     player = FindObjectOfType <TrialPlayerMovement>();
 }