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); } }
private void onJelloportationStarted(Signal signal) { JelloportationStartedSignal jelloportationStartedSignal = (JelloportationStartedSignal)signal; nextState = new JelloportState(character, jelloportationStartedSignal.newJelloState); }
private void onJelloportationStarted(Signal signal) { JelloportationStartedSignal jelloportationStartedSignal = (JelloportationStartedSignal)signal; SetParent(jelloportationStartedSignal.destinationPlate.CameraHolder); }