protected virtual void SetState(Data.HitAreaState incomeState) { if (incomeState == Data.HitAreaState.Found) { _wasFound = true; } if (incomeState == Data.HitAreaState.Disabled) { _wasFound = false; } _state = incomeState; }
protected virtual void OnDestroy() { _state = Data.HitAreaState.Enabled; }