Ejemplo n.º 1
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);
        }
    }
Ejemplo n.º 2
0
    private void onJelloportationStarted(Signal signal)
    {
        JelloportationStartedSignal jelloportationStartedSignal = (JelloportationStartedSignal)signal;

        nextState = new JelloportState(character, jelloportationStartedSignal.newJelloState);
    }
Ejemplo n.º 3
0
    private void onJelloportationStarted(Signal signal)
    {
        JelloportationStartedSignal jelloportationStartedSignal = (JelloportationStartedSignal)signal;

        SetParent(jelloportationStartedSignal.destinationPlate.CameraHolder);
    }