Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        _instance = this;

        gamedatas = DataManager._instance.Get(DataType._gamedata) as gamedata;


        DataManager._instance.AddDataWatch(DataType._gamedata, OnRefresh);

        UIPanelManager panelManager = UIPanelManager.Instance;

        panelManager.PushPanel(UIPanelType.start);
        txt_gold.text = gamedatas.GameGoldValue.ToString();
    }
Пример #2
0
    void Start()
    {
        UIPanelManager panelManager = UIPanelManager.Instance;

        panelManager.PushPanel(UIPanelType.MainMenu);
    }
Пример #3
0
    void Start()
    {
        UIPanelManager panelManager = UIPanelManager.Instance;

        panelManager.PushPanel(UIPanelType.Game);
    }