public override bool Check() { if (reseter) { ResetPerceptions(); } if (!perLeft) { perLeft = PerceptionLeft.Check(); } if (!perRight) { perRight = PerceptionRight.Check(); } if (perLeft && perRight) { reseter = true; return(true); } else { return(false); } }
public override bool Check() { if (PerceptionLeft.Check() || PerceptionRight.Check()) { return(true); } else { return(false); } }