public UpgradePanel(PlayScene scene, UpgradeInterface spellInterface) { _scene = scene; _windowPosition = new IntVector2(); _windowSize = new IntVector2(Display.CONSOLE_WIDTH, Display.CONSOLE_HEIGHT); _spellInterface = spellInterface; }
public void OpenUpgradePanel() { _upgradeScreenActive = true; _upgradeInterface = new UpgradeInterface(this); _upgradePanel = new UpgradePanel(this, _upgradeInterface); }
public void CloseUpgradePanel() { _upgradeScreenActive = false; _upgradeInterface = null; _upgradePanel = null; }
void Start() { upgradeInterface = gameObject.GetComponent <UpgradeInterface>(); upgradeInterface.ToggleUpgradeButtons(); }