Beispiel #1
0
Datei: Traps.cs Projekt: Tam/ld40
    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
            );
    }
Beispiel #2
0
Datei: Traps.cs Projekt: Tam/ld40
 void UpdateUI()
 {
     _globalVars.uiManager.upgradePanel.SetStats(UIStat.Create("Cooldown Duration", CheckAttractionTime), UIStat.Create("Success Chance", SucessRate), UIStat.Create("Area of Effect", AttractRaduis));
 }