예제 #1
0
        public static void LoadAsyncObject(string path, System.Action callback = null, string tag = "Default", Transform parent = null)
        {
            LoadModel.LoadAsyncObject <GameObject>(path,
                                                   () => {
                Modeling.LoadPrefab(path, tag, parent);

                callback?.Invoke();
            });
        }
예제 #2
0
 public static void LoadAsyncObject(string path, Quaternion localRotation, string tag = "Player", Transform parent = null)
 {
     LoadModel.LoadAsyncObject <GameObject>(path,
                                            () => Modeling.LoadPrefab(path, tag, parent));
 }