예제 #1
0
    // Update is called once per frame
    void Update()
    {
        //  TODO aherrera : create a method for this pls.. (something like "change state")
        if (mState == eControllerState.eControllerState_READY_TO_INITIALIZE)
        {
            CreateDungeonObject();
            mState = eControllerState.eControllerState_ACTIVE;
        }

        //  TODO aherrera : don't put this here
        // 1/29     moved this block from DungeomModel.Update -- still not here?
        foreach (GameObject go in m_questingParties.Values)
        {
            PartyController pc = go.GetComponent <PartyController>();
            if (pc != null)
            {
                pc.InternalUpdate();
            }
        }
    }