예제 #1
0
 internal void DestroyInstance(GameObject instance)
 {
     if (this.destroyDelegates != null)
     {
         this.destroyDelegates(instance);
     }
     else
     {
         InstanceHandler.DestroyInstance(instance);
     }
 }
예제 #2
0
 internal static void DestroyInstance(GameObject instance)
 {
     if (InstanceHandler.DestroyDelegates != null)
     {
         InstanceHandler.DestroyDelegates(instance);
     }
     else
     {
         Object.Destroy(instance);
     }
 }
예제 #3
0
 internal GameObject InstantiatePrefab(GameObject prefab, Vector3 pos, Quaternion rot)
 {
     if (this.instantiateDelegates != null)
     {
         return(this.instantiateDelegates(prefab, pos, rot));
     }
     else
     {
         return(InstanceHandler.InstantiatePrefab(prefab, pos, rot));
     }
 }
예제 #4
0
 internal static GameObject InstantiatePrefab(GameObject prefab, Vector3 pos, Quaternion rot)
 {
     if (InstanceHandler.InstantiateDelegates != null)
     {
         return(InstanceHandler.InstantiateDelegates(prefab, pos, rot));
     }
     else
     {
         return(Object.Instantiate(prefab, pos, rot) as GameObject);
     }
 }