少年修仙传客户端基础资源
client_Wu Xijin
2019-05-20 5683a4e9aafda0466c39d6843837ffd686c5fc9e
Assets/Editor/Tool/ClientPackage_Standalone.cs
@@ -362,6 +362,7 @@
            EditorUtility.SetDirty(newVersionConfig);
            SetIconAndSplashImage(versionName);
            SetCreateRoleAnimation();
            PlayerSettings.companyName = "TheSecondWorld";
            PlayerSettings.productName = newVersionConfig.productName;
@@ -432,4 +433,20 @@
        PlayerSettings.SplashScreen.logos = new PlayerSettings.SplashScreenLogo[] { splashScreenLogo };
    }
    public static void SetCreateRoleAnimation()
    {
        var from = "Assets/Editor/Video/CreateRoleMovie.mp4";
        var to = "Assets/Resources/CreateRoleMovie.mp4";
        if (!Directory.Exists(Application.dataPath + "Resources"))
        {
            Directory.CreateDirectory(Application.dataPath + "Resources");
        }
        if (AssetDatabase.LoadAssetAtPath<UnityEngine.Video.VideoClip>(to) == null)
        {
            AssetDatabase.CopyAsset(from, to);
        }
    }
}