示例#1
0
    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);
        }
    }
示例#2
0
    void Start()
    {
        turnables = MockData.GetMockTurnList();

        if (TurnSystem != null)

        {
            foreach (var t in turnables)
            {
                t.RegisterTurn();
            }
        }

        TurnList.Init(null);
    }