internal void DestroyInstance(GameObject instance) { if (this.destroyDelegates != null) { this.destroyDelegates(instance); } else { InstanceHandler.DestroyInstance(instance); } }
internal static void DestroyInstance(GameObject instance) { if (InstanceHandler.DestroyDelegates != null) { InstanceHandler.DestroyDelegates(instance); } else { Object.Destroy(instance); } }
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)); } }
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); } }