void Update() { if (retract && (CenterButton.localScale == selectedScale || CenterButton.localScale == idleScale)) { retract = false; } if (fullyActive && CenterButton.localScale == idleScale) { if (FuseCold != null) { FuseCold.Invoke(); } fullyActive = false; finishedScaling = true; } else if (!fullyActive && CenterButton.localScale == selectedScale) { if (FuseHot != null) { FuseHot.Invoke(); } fullyActive = true; finishedScaling = true; } }
public void ForceCold() { CenterButton.localScale = idleScale; if (FuseCold != null) { FuseCold.Invoke(); } }