Example #1
0
    /// <summary>
    /// 清空
    /// </summary>
    /// <param name="poolType"></param>
    public static void Clear(PoolType poolType)
    {
        switch (poolType)
        {
        case PoolType.GenericProp:
            genericPropPool.Clear();
            break;

        case PoolType.Enemy:
            enemyPool.Clear();
            break;

        case PoolType.Player:
            playerPool.Clear();
            break;

        default:
            break;
        }
    }