Exemple #1
0
    private void buy()
    {
        GameObject         go   = UIManager.OpenUI(Config.UI.UIPath.ContanerSelectPanel);
        ContanerSelectView list = go.GetComponent <ContanerSelectView>();

        list.setCallback((id) => {
            Destroy(go);
            Mod.Cabinet cabinet = Mod.Cabinet.GetById(id);
            GameObject pay      = UIManager.OpenUI(Config.UI.UIPath.PayPanel);
            PayView pv          = pay.GetComponent <PayView>();
            pv.amount           = cabinet.Good().Price;
        });
    }