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