public override bool Equals(AbstractPoolableObject other) { bool Is_base_Equals = base.Equals(other); if (Is_base_Equals && other is InsideObjsAnimatedContainer) { Animation xa = GetComponentInChildren <Animation>(); Animation ya; Animation[] comps2 = other.GetGameObject.GetComponentsInChildren <Animation>(true); if (comps2.Length != 0) { ya = comps2[0]; } else { ya = null; } if ((xa == null) ^ (ya == null)) { return(false); } if ((xa == null) && (ya == null)) { return(true); } return(xa.clip == ya.clip); } else { return(false); } }
public override bool Equals(AbstractPoolableObject other) { return(((other is BigEnemy) && (this is BigEnemy)) || ((other is MiddleEnemy) && (this is MiddleEnemy)) || ((other is ButterflyEnemy) && (this is ButterflyEnemy))); }