Beispiel #1
0
    void Awake()
    {
        m_Type = CSConst.CreatorType.Managed;

        m_CommonEntities = new Dictionary <int, CSCommon>();

        m_MainNpcs   = new List <CSPersonnel>();
        m_RandomNpcs = new List <CSPersonnel>();

        CSPersonnel.RegisterStateChangedListener(OnPersonnelChangeState);
        CSPersonnel.RegisterOccupaChangedListener(OnPersonnelChangeOccupation);
        CSPersonnel.RegisterWorkTypeChangedListener(OnPersonnelChangeWorkType);

        // Init Timer
        m_Timer = new PETimer();
    }