void Awake() { if (GameObject.FindGameObjectWithTag("UI") == null) { GameObject UI = Instantiate(Resources.Load("tactic_ui")) as GameObject; UI_TurnList turnlist = UI.GetComponentInChildren <UI_TurnList>(); turnlist.Init(Turn); } }
void Start() { turnables = MockData.GetMockTurnList(); if (TurnSystem != null) { foreach (var t in turnables) { t.RegisterTurn(); } } TurnList.Init(null); }