예제 #1
0
            }                                                           // Equals doesn't check this

            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                Bad3 rhs = rhsObj as Bad3;

                return(FirstName == rhs.FirstName && LastName == rhs.LastName);
            }
예제 #2
0
            public override bool Equals(object rhsObj)
            {
                if (rhsObj == null)
                {
                    return(false);
                }

                Bad3 rhs = rhsObj as Bad3;

                return(this == rhs);
            }
예제 #3
0
            public override bool Equals(object rhsObj)
            {
                if (object.ReferenceEquals(this, rhsObj))
                {
                    return(true);
                }

                Bad3 rhs = rhsObj as Bad3;

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

                return(name == rhs.name && address == rhs.address);
            }
 public void Verify3E()
 {
     if (!Timer.gameEnded && !EquationControl.verified3 && !EquationControl.controlLoss)
     {
         if (EquationControl.n6 == EquationControl.CorrectInts[2])
         {
             Bad3.SetActive(false);
             Good3.SetActive(true);
             FindObjectOfType <SoundManager>().PlaySound("success3");
             EquationControl.score++;
             EquationControl.verified3 = true;
         }
         else
         {
             FindObjectOfType <SoundManager>().PlaySound("incorrectanswer");
             Bad3.SetActive(true);
         }
     }
 }
예제 #5
0
 public bool Equals(Bad3 rhs)
 {
     return this == rhs;
 }
예제 #6
0
 public bool Equals(Bad3 rhs)
 {
     return(this == rhs);
 }