| | |
| | | if (AssetSource.sceneFromEditor) |
| | | { |
| | | #if UNITY_EDITOR |
| | | var path = StringUtility.Contact(ResourcesPath.ResourcesOutAssetPath, "Scene/", folder, "/", name, ".png"); |
| | | var path = StringUtility.Contact(ResourcesPath.ResourcesOutAssetPath, "Scene/", folder, "/", name, ".jpg"); |
| | | texture2D = UnityEditor.AssetDatabase.LoadAssetAtPath<Texture2D>(path); |
| | | #endif |
| | | } |
| | |
| | |
|
| | | SoundPlayer.Instance.UnLoadMusic(mapResConfig.Music);
|
| | | SoundPlayer.Instance.PlayBackGroundMusic(mapResConfig.Music);
|
| | |
|
| | | SceneResourcesReplace();
|
| | | // 做一些前期战斗的预加载
|
| | | // if (!PreFightMission.Instance.IsFinished())
|
| | | // {
|