예제 #1
0
        public void StartGame()
        {
            Event.TurnModify evt = Core.Event.Getter.Get <Event.TurnModify>();
            evt.hashtable["player_id"] = CurrentTurnPlayerID;

            Core.Event.Dispatcher.Dispatch(evt);
        }
예제 #2
0
        public void ChangeTurn()
        {
            Event.TurnModify evt = Core.Event.Getter.Get <Event.TurnModify>();
            evt.hashtable["player_id"] = NextTurnPlayerID;

            Core.Event.Dispatcher.Dispatch(evt);
        }
예제 #3
0
        public void OnUpdate()
        {
            return;

            time += Time.deltaTime;
            int t = Mathf.FloorToInt(time);

            if (time > 10)
            {
                time = 0f;

                Event.TurnModify evt = Core.Event.Getter.Get <Event.TurnModify>();
                evt.hashtable["player_id"] = NextTurnPlayerID;

                Core.Event.Dispatcher.Dispatch(evt);
            }
        }