Exemplo n.º 1
0
            public override void OnEnter()
            {
                Finish();

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

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

                gameDoor.onOpen(gameDoor.go);
            }
Exemplo n.º 2
0
            public override void OnEnter()
            {
                Finish();

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

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

                gameDoor.onOpen();
            }