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 ); }
void UpdateUI() { _globalVars.uiManager.upgradePanel.SetStats(UIStat.Create("Cooldown Duration", CheckAttractionTime), UIStat.Create("Success Chance", SucessRate), UIStat.Create("Area of Effect", AttractRaduis)); }