Exemple #1
0
        // Use this for initialization
        void Start()
        {
            audioController = FindObjectOfType <GC.AudioController>();
            LevelController = FindObjectOfType <GC.LevelController>();
            rb = GetComponent <Rigidbody2D>();

            // Enable engine rumble
            audioController.ToggleAudioContinuous(GC.AudioController.Sources.Movement, true);
            audioController.PlayAudio(GC.AudioController.Sources.Movement);
        }
Exemple #2
0
 public void Start()
 {
     // Cache the level controller
     LevelController = FindObjectOfType <GC.LevelController>();
 }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     // Cache the scene's LevelController
     LevelController = FindObjectOfType <GC.LevelController>();
 }