Exemplo n.º 1
0
    public static GameObject SpwanObject(this GameObject obj, int poolIndex, Vector3 pos, Quaternion quat)
    {
        var go = SimpleObjectPool.Instacne.objectList[poolIndex].prefab;

        return(SimpleObjectPool.SpawnPoolObject(go, pos, quat));
    }
Exemplo n.º 2
0
 public static GameObject SpwanObject <T>(this T obj, Vector3 pos, Quaternion quat) where T : Component
 {
     return(SimpleObjectPool.SpawnPoolObject(obj.gameObject, pos, quat));
 }