//------------------------------------------------------------------------- // CLASS METHOD DEFINITIONS //------------------------------------------------------------------------- void Awake() { manager = GetComponent <InteractableManager>(); manager.Register(this); updateHandler_ = sceneIntro; // play the cell door sound CellDoorSoundSound.Play(); // play background music but set volume to 0. // also set the fader for the bgm BackgroundMusic.Play(); BackgroundMusic.Loop(true); BackgroundMusic.SetVolume(0.0f); bgmFader_ = new Fader(0.0f, 30.0f, 0.0f); // introBgFader_ = new Fader(1.0f, 0.0f, 5.0f); }
protected virtual void Start() => InteractableManager.Register(this);
void Awake() { manager = GetComponent<InteractableManager>(); manager.Register(this); }
//------------------------------------------------------------------------- // CLASS METHOD DEFINITIONS //------------------------------------------------------------------------- void Awake() { manager = GetComponent<InteractableManager>(); manager.Register(this); updateHandler_ = sceneIntro; // play the cell door sound CellDoorSoundSound.Play(); // play background music but set volume to 0. // also set the fader for the bgm BackgroundMusic.Play(); BackgroundMusic.Loop(true); BackgroundMusic.SetVolume(0.0f); bgmFader_ = new Fader(0.0f, 30.0f, 0.0f); // introBgFader_ = new Fader(1.0f, 0.0f, 5.0f); }
void Awake() { manager = GetComponent <InteractableManager>(); manager.Register(this); }