Beispiel #1
0
 void Start()
 {
     cameraController = FindObjectOfType<CameraController>();
     snakeStarter = FindObjectOfType<RotateForward>();
     cameraLerper = FindObjectOfType<LerpToCameraPoint>();
     StartCoroutine(rotateGlobe());
 }
Beispiel #2
0
    void Awake()
    {
        DontDestroyOnLoad(transform.gameObject);

        if (photonView.isMine)
        {
            rotationDevice = GameObject.FindGameObjectWithTag("RotationDevice");
            finalSpeeder = FindObjectOfType<RotateForward>();
        }
        else
        {
            trail = GetComponentInChildren<Trail>();
        }
    }
Beispiel #3
0
 void Start()
 {
     snake = FindObjectOfType<SnakeController>();
     speedLocker = FindObjectOfType<RotateForward>();
     inputDriver = FindObjectOfType<InputDriver>();
 }