31 lines
697 B
C#
31 lines
697 B
C#
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using UnityEngine;
|
|||
|
|
using System;
|
|||
|
|
namespace ZXKFramework
|
|||
|
|
{
|
|||
|
|
public interface IObjectPool
|
|||
|
|
{
|
|||
|
|
void Init(string dirPath);
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD>ü<EFBFBD><C3BC>صķ<D8B5>ʽ
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="res"></param>
|
|||
|
|
void SetResType(IRes res);
|
|||
|
|
|
|||
|
|
//ȡ<><C8A1>
|
|||
|
|
void Spawn(string name, Transform trans, Action<GameObject> callBack = null);
|
|||
|
|
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
void Unspawn(GameObject go);
|
|||
|
|
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
void Unspawn(string go);
|
|||
|
|
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
void UnspawnAll();
|
|||
|
|
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
void Clear();
|
|||
|
|
}
|
|||
|
|
}
|