Example #1
0
    public override void DestroySelf()
    {
        base.DestroySelf();

        // Global Notice
        GlobalEvent.NoticePowerPlantStateChanged();
    }
Example #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();
    }