Beispiel #1
0
    /// <summary>
    /// 添加对象
    /// </summary>
    /// <param name="poolType"></param>
    /// <param name="poolObjectState"></param>
    /// <param name="Name"></param>
    /// <param name="sources"></param>
    public static void AddPool(PoolType poolType, PoolObjectStateType poolObjectState, string Name, ISources sources)
    {
        switch (poolType)
        {
        case PoolType.GenericProp:
            genericPropPool.AddPool(poolObjectState, Name, sources);
            break;

        case PoolType.Enemy:
            enemyPool.AddPool(poolObjectState, Name, sources);
            break;

        case PoolType.Player:
            playerPool.AddPool(poolObjectState, Name, sources);
            break;

        default:
            break;
        }
    }