Пример #1
0
 public CutSceneSequence GetUnplayedSequenceFor(JelloPlate plate)
 {
     foreach (CutSceneSequence sequence in cutSceneSequences)
     {
         if (sequence.TriggerPlate == plate && !sequence.FinishedWatching)
         {
             return(sequence);
         }
     }
     return(null);
 }
Пример #2
0
    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();
        }
    }
Пример #3
0
    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);
        }
    }
Пример #4
0
 public JelloportationStartedSignal(JelloState newJelloState, JelloPlate destinationPlate)
 {
     this.newJelloState    = newJelloState;
     this.destinationPlate = destinationPlate;
 }