コード例 #1
0
ファイル: Jelloporter.cs プロジェクト: RambleHouseGames/LD48
    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);
        }
    }
コード例 #2
0
    private void onJelloportationStarted(Signal signal)
    {
        JelloportationStartedSignal jelloportationStartedSignal = (JelloportationStartedSignal)signal;

        nextState = new JelloportState(character, jelloportationStartedSignal.newJelloState);
    }
コード例 #3
0
    private void onJelloportationStarted(Signal signal)
    {
        JelloportationStartedSignal jelloportationStartedSignal = (JelloportationStartedSignal)signal;

        SetParent(jelloportationStartedSignal.destinationPlate.CameraHolder);
    }