public void StartGame() { Event.TurnModify evt = Core.Event.Getter.Get <Event.TurnModify>(); evt.hashtable["player_id"] = CurrentTurnPlayerID; Core.Event.Dispatcher.Dispatch(evt); }
public void ChangeTurn() { Event.TurnModify evt = Core.Event.Getter.Get <Event.TurnModify>(); evt.hashtable["player_id"] = NextTurnPlayerID; Core.Event.Dispatcher.Dispatch(evt); }
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); } }