Пример #1
0
        public static void Create(PowerPotController owner, Action <ChargeBar> callback)
        {
            var prefab = Resources.Load(ChargeBar.PrefabPath) as GameObject;
            var go     = Instantiate(prefab, UIManager.I.ChargeBarParent);

            var res = go.GetComponent <ChargeBar>();

            res.Setup(owner);

            callback(res);
        }
Пример #2
0
        public void Setup(PowerPotController owner)
        {
            Owner = owner;

            Reset();
        }