public CutSceneSequence GetUnplayedSequenceFor(JelloPlate plate) { foreach (CutSceneSequence sequence in cutSceneSequences) { if (sequence.TriggerPlate == plate && !sequence.FinishedWatching) { return(sequence); } } return(null); }
private void onPlayerExitingJelloporter(Signal signal) { PlayerExitingJelloporterSignal playerExitingJelloporterSignal = (PlayerExitingJelloporterSignal)signal; JelloPlate plate = playerExitingJelloporterSignal.jelloporter.GetCurrentPlate(); CutSceneSequence sequence = CutSceneManager.Inst.GetUnplayedSequenceFor(plate); if (sequence != null) { CutSceneManager.Inst.SetActiveSequence(sequence); nextState = new FirstFadeInState(); } }
private void onJelloportationStarted(Signal signal) { JelloportationStartedSignal jelloportationStartedSignal = (JelloportationStartedSignal)signal; JelloPlate destination = thisJelloporter.ChooseDestination(jelloportationStartedSignal.newJelloState); if (destination == thisJelloporter.TopPlate) { nextState = new JumpToTopPlate(thisJelloporter); } else { nextState = new JumpToBottomPlate(thisJelloporter); } }
public JelloportationStartedSignal(JelloState newJelloState, JelloPlate destinationPlate) { this.newJelloState = newJelloState; this.destinationPlate = destinationPlate; }