Пример #1
0
    public void displayNull()
    {
        image.GetComponent <Animator>().SetTrigger("reveal");
        MastermindColor c = mastermind.displayColors[2];

        SetResultColor(c);
    }
Пример #2
0
 // go to next color
 public void Next()
 {
     if (!locked)
     {
         MastermindColor c = mastermind.colors[(mastermindColor.index + 1) % mastermind.colors.Count];
         SetMastermindColor(c);
     }
 }
Пример #3
0
        public override bool Equals(object obj)
        {
            MastermindColor other = obj as MastermindColor;

            if (other == null)
            {
                return(false);
            }
            return(other.index == index);
        }
Пример #4
0
 public void SetMastermindColor(MastermindColor c)
 {
     mastermindColor = c;
     image.sprite    = c.image;
 }
Пример #5
0
 public void SetResultColor(MastermindColor c)
 {
     image.GetComponent <Animator>().SetTrigger("reveal");
     mastermindColor = c;
     image.sprite    = c.image;
 }