// 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); }
public void Start() { // Cache the level controller LevelController = FindObjectOfType <GC.LevelController>(); }
// Use this for initialization void Start() { // Cache the scene's LevelController LevelController = FindObjectOfType <GC.LevelController>(); }