Beispiel #1
0
 public static PooledObject Instantiate(PooledObject original, Vector3 position, Quaternion rotation)
 {
     return(PooledObject.Instantiate(original, position, rotation, null));
 }
Beispiel #2
0
 public static PooledObject Instantiate(PooledObject original, Transform parent)
 {
     return(PooledObject.Instantiate(original, Vector3.zero, Quaternion.identity, parent));
 }
Beispiel #3
0
 // Normal Instantiate
 public static PooledObject Instantiate(PooledObject original)
 {
     return(PooledObject.Instantiate(original, Vector3.zero, Quaternion.identity, null));
 }
Beispiel #4
0
 public static new T Instantiate <T>(T original, Vector3 position, Quaternion rotation, Transform parent) where T : PooledObject
 {
     return(PooledObject.Instantiate((PooledObject)original, position, rotation, parent) as T);
 }
Beispiel #5
0
 public static new T Instantiate <T>(T original, Transform parent) where T : PooledObject
 {
     return(PooledObject.Instantiate((PooledObject)original, parent) as T);
 }
Beispiel #6
0
        ////////////////////////////////////////////////////
        ///// Instantiate and Destory for PooledObject /////
        ///// (PooledObject전용 Instantiate와 Destory)  /////
        ////////////////////////////////////////////////////

        // Generic Instantiate
        public static new T Instantiate <T>(T original) where T : PooledObject
        {
            return(PooledObject.Instantiate((PooledObject)original) as T);
        }