コード例 #1
0
    public BattleLogic()
    {
        TableConfig config = new TableConfig();

        config.LoadTableConfig();

        m_UnitMgr = BattleUnitManager.instance;

        m_DecisionUpdater = delegate(BattleUnit entity, float gameTime, float deltaTime)
        {
            return(entity.UpdateDecision(gameTime, deltaTime));
        };
        m_RequestUpdater = delegate(BattleUnit entity, float gameTime, float deltaTime)
        {
            return(entity.UpdateRequest(gameTime, deltaTime));
        };
        m_BehaviorUpdater = delegate(BattleUnit entity, float gameTime, float deltaTime)
        {
            return(entity.UpdateBehavior(gameTime, deltaTime));
        };
    }