COL.UnityGameWheels.Core.BaseLifeCycleService.CheckStateOrThrow C# (CSharp) Method

CheckStateOrThrow() protected method

Check whether the module is in an available state.
protected CheckStateOrThrow ( ) : void
return void
        protected internal virtual void CheckStateOrThrow()
        {
            if (!m_IsInited)
            {
                throw new System.InvalidOperationException("Not initialized.");
            }

            if (m_IsShut)
            {
                throw new System.InvalidOperationException("Already shut.");
            }
        }
    }