Exemplo n.º 1
0
            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                Bad2 rhs = rhsObj as Bad2;

                return(this == rhs);
            }
Exemplo n.º 2
0
            // Equals matches GetHashCode
            public bool Equals(Bad2 rhs)
            {
                if (object.ReferenceEquals(this, rhs))
                {
                    return(true);
                }

                if ((object)rhs == null)
                {
                    return(false);
                }

                return(name == rhs.name && address == rhs.address);
            }
 public void Verify2E()
 {
     if (!Timer.gameEnded && !EquationControl.verified2 && !EquationControl.controlLoss)
     {
         if (EquationControl.n3 == EquationControl.CorrectInts[1])
         {
             Bad2.SetActive(false);
             Good2.SetActive(true);
             FindObjectOfType <SoundManager>().PlaySound("success3");
             EquationControl.score++;
             EquationControl.verified2 = true;
         }
         else
         {
             FindObjectOfType <SoundManager>().PlaySound("incorrectanswer");
             Bad2.SetActive(true);
         }
     }
 }
Exemplo n.º 4
0
            // Equals matches GetHashCode
            public bool Equals(Bad2 rhs)
            {
                if (object.ReferenceEquals(this, rhs))
                    return true;

                if ((object) rhs == null)
                    return false;

                return name == rhs.name && address == rhs.address;
            }
Exemplo n.º 5
0
 public bool Equals(Bad2 rhs)
 {
     return(m_x == rhs.m_x && m_y == rhs.m_y);
 }
Exemplo n.º 6
0
 public bool Equals(Bad2 rhs)
 {
     return m_x == rhs.m_x && m_y == rhs.m_y;
 }
Exemplo n.º 7
0
 public bool Equals(Bad2 rhs)
 {
     return this == rhs;
 }
Exemplo n.º 8
0
 public bool Equals(Bad2 rhs)
 {
     return(this == rhs);
 }