示例#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);
            }
        }