Пример #1
0
    public override void DestroySelf()
    {
        base.DestroySelf();

        // Global Notice
        GlobalEvent.NoticePowerPlantStateChanged();
    }
Пример #2
0
    // [NEW_FUNC] =========>>>>
    public override void ChangeState()
    {
        if (Assembly != null && Assembly.IsRunning &&
            isWorking())
        {
            m_IsRunning = true;
            FindElectrics();
        }
        else
        {
            DetachAllElectrics();
            m_IsRunning = false;
        }

        // Global Notice
        GlobalEvent.NoticePowerPlantStateChanged();
    }