コード例 #1
0
            public override void OnEnter()
            {
                Finish();

                // If close was not triggered by local player do not send call the callback.

                if (State.Fsm.LastTransition.EventName != CLOSE_EVENT_NAME)
                {
                    return;
                }

                gameDoor.onClose(gameDoor.go);
            }
コード例 #2
0
ファイル: GameDoor.cs プロジェクト: kuppa213/MSCMP
            public override void OnEnter()
            {
                Finish();

                // If close was triggered from our custom event we do not send it.

                if (State.Fsm.LastTransition.EventName == CLOSE_EVENT_NAME)
                {
                    return;
                }

                gameDoor.onClose();
            }