少年修仙传客户端基础资源
client_Wu Xijin
2019-05-20 5683a4e9aafda0466c39d6843837ffd686c5fc9e
Assets/Editor/Tool/ClientPackage.cs
@@ -508,6 +508,7 @@
            EditorUtility.SetDirty(newVersionConfig);
            SetIconAndSplashImage(versionName);
            SetCreateRoleAnimation();
            PlayerSettings.companyName = "TheSecondWorld";
            PlayerSettings.productName = newVersionConfig.productName;
@@ -587,6 +588,22 @@
        }
    }
    public static void SetCreateRoleAnimation()
    {
        var from = "Assets/Editor/Video/CreateRoleMovie.mp4";
        var to = "Assets/StreamingAssets/CreateRoleMovie.mp4";
        if (!Directory.Exists(Application.dataPath + "StreamingAssets"))
        {
            Directory.CreateDirectory(Application.dataPath + "StreamingAssets");
        }
        if (AssetDatabase.LoadAssetAtPath<UnityEngine.Video.VideoClip>(to) == null)
        {
            AssetDatabase.CopyAsset(from, to);
        }
    }
    static BuildTargetGroup GetBuildTarget()
    {
#if UNITY_ANDROID