public void SetReferences(Texture Big, Texture Medium, Texture Small, WhackAFireMinigame Minigame) { this.Big = Big; this.Medium = Medium; this.Small = Small; minigame = Minigame; }
private void SetFire(FireSize size) { switch (size) { case FireSize.Big: { FireImage.texture = Big; IsOnFire = true; break; } case FireSize.Medium: { FireImage.texture = Medium; IsOnFire = true; break; } case FireSize.Small: { FireImage.texture = Small; IsOnFire = true; break; } case FireSize.None: { FireImage.texture = null; IsOnFire = false; WhackAFireMinigame.FireExtinguished(); break; } } Col.enabled = IsOnFire; FireImage.color = IsOnFire ? Color.white : Transparent; Size = size; }