Пример #1
0
        protected virtual void SetState(Data.HitAreaState incomeState)
        {
            if (incomeState == Data.HitAreaState.Found)
            {
                _wasFound = true;
            }
            if (incomeState == Data.HitAreaState.Disabled)
            {
                _wasFound = false;
            }

            _state = incomeState;
        }
Пример #2
0
 protected virtual void OnDestroy()
 {
     _state = Data.HitAreaState.Enabled;
 }