Пример #1
0
            public override bool Equals(object obj)
            {
                Bad1 rhs = obj as Bad1;

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

                return(this == rhs);
            }
Пример #2
0
            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                Bad1 rhs = rhsObj as Bad1;

                return(m_name == rhs.m_name && m_address == rhs.m_address);
            }
Пример #3
0
            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                Bad1 rhs = rhsObj as Bad1;

                return(this == rhs);
            }
Пример #4
0
            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                if (GetType() != rhsObj.GetType())
                {
                    return(false);
                }

                Bad1 rhs = (Bad1)rhsObj;

                return(x == rhs.x && y == rhs.y);
            }
 public void Verify1E()
 {
     if (!Timer.gameEnded && !EquationControl.verified1 && !EquationControl.controlLoss)
     {
         if (EquationControl.n0 == EquationControl.CorrectInts[0])
         {
             Bad1.SetActive(false);
             Good1.SetActive(true);
             FindObjectOfType <SoundManager>().PlaySound("success3");
             EquationControl.score++;
             EquationControl.verified1 = true;
         }
         else
         {
             FindObjectOfType <SoundManager>().PlaySound("incorrectanswer");
             Bad1.SetActive(true);
         }
     }
 }
Пример #6
0
 public bool Equals(Bad1 rhs)
 {
     return this == rhs;
 }
Пример #7
0
            public override bool Equals(object rhsObj)
            {
                Bad1 rhs = (Bad1)rhsObj;

                return(x == rhs.x);
            }
Пример #8
0
 public bool Equals(Bad1 rhs)
 {
     return(this == rhs);
 }