private void HandleMoviePlay(int currentIndex, int lastIndex) { MoviePlay current = tutorialIslands[currentIndex].GetComponent <MoviePlay>(); MoviePlay last = tutorialIslands[lastIndex].GetComponent <MoviePlay>(); current.ContinueMovie(); last.PauseMovie(); }
void Awake() { //the singleton if (Instance != null) { Debug.LogError("Multiple instances of SoundEffectsHelper!"); } Instance = this; }
private int MoviePlayImpl(ref MoviePlay thisPointer) { IsPlayingFmv = true; return(_moviePlayHook.OriginalFunction(ref thisPointer)); }
void Awake() { _instance = this; }