private IEnumerator CharacterCaughtSequence() { m_mainCharacter.IsMoveEnabled = false; m_mainCharacter.PlaySiljaCaughtRandomSound(); yield return(new WaitForSeconds(captureTimeTotal - 0.1f)); m_mainCharacter.SetHeartbeatVolume(0.0f); Fader.Instance.FadeScreen(true, 1.0f); yield return(new WaitForSeconds(blackscreenTime)); m_mainCharacter.ResetCharacter(); m_characterIsCaught = false; m_timeSpentInDark = 0f; ObjectsTranslator.MoveObjectTo(lastCheckPoint); }
void Awake() { m_instance = this; }
void Awake() { m_instance = this; }