示例#1
0
    // Use this for initialization
    void Start()
    {
        PoolService poolService = GameFramework.GetService <PoolService>();
        var         pool        = poolService.CreatePool("Test");

        poolService.PreloadPrefab(pool, testPrefab, 3, 5);
        poolService.Spawn(pool, testPrefab, Vector3.zero, Quaternion.identity, this.gameObject);
    }