public void displayNull() { image.GetComponent <Animator>().SetTrigger("reveal"); MastermindColor c = mastermind.displayColors[2]; SetResultColor(c); }
// go to next color public void Next() { if (!locked) { MastermindColor c = mastermind.colors[(mastermindColor.index + 1) % mastermind.colors.Count]; SetMastermindColor(c); } }
public override bool Equals(object obj) { MastermindColor other = obj as MastermindColor; if (other == null) { return(false); } return(other.index == index); }
public void SetMastermindColor(MastermindColor c) { mastermindColor = c; image.sprite = c.image; }
public void SetResultColor(MastermindColor c) { image.GetComponent <Animator>().SetTrigger("reveal"); mastermindColor = c; image.sprite = c.image; }