Exemple #1
0
    void MakeUIAppear()
    {
        if (_wasPlaced)
        {
            _wasPlaced = false;
            return;
        }

        _globalVars.uiManager.upgradePanel.SetAndShow(
            transform,
            "Trap Name Here",
            UIStat.Create("Cooldown Duration", CheckAttractionTime),
            UIStat.Create("Success Chance", SucessRate),
            UIStat.Create("Area of Effect", AttractRaduis),
            this
            );
    }
Exemple #2
0
 void UpdateUI()
 {
     _globalVars.uiManager.upgradePanel.SetStats(UIStat.Create("Cooldown Duration", CheckAttractionTime), UIStat.Create("Success Chance", SucessRate), UIStat.Create("Area of Effect", AttractRaduis));
 }