public override bool Equals(object rhsObj) { if (rhsObj == null) { return(false); } Bad2 rhs = rhsObj as Bad2; return(this == rhs); }
// 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); } } }
// 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 bool Equals(Bad2 rhs) { return(m_x == rhs.m_x && m_y == rhs.m_y); }
public bool Equals(Bad2 rhs) { return m_x == rhs.m_x && m_y == rhs.m_y; }
public bool Equals(Bad2 rhs) { return this == rhs; }
public bool Equals(Bad2 rhs) { return(this == rhs); }