瀏覽代碼

动画脚本

zhaoyang 2 年之前
父節點
當前提交
e4df06dfc1

+ 1 - 1
GameClient/Assets/Editor/ArtsRes/ImportArtResTool.cs

@@ -251,7 +251,7 @@ namespace GFGEditor
             }
             foreach (string dir in sourceDirs)
             {
-                files = FileUtil.CopyFilesTo(dir, targetDir, saveName, new string[] { ".png", ".jpg", ".mp3", ".meta", ".mat", ".shader", ".tga", ".FBX", ".max", ".cs" }, ragule);
+                files = FileUtil.CopyFilesTo(dir, targetDir, saveName, new string[] { ".png", ".jpg", ".mp3", ".meta", ".mat", ".shader", ".tga", ".FBX", ".max" }, ragule);
                 foreach (var file in files)
                 {
                     Debug.LogFormat("更新{0}", file);

+ 8 - 0
GameClient/Assets/Game/HotUpdate/Effect.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: b35b8e2b0a0f19b4fb3a72e1d19c58c3
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 17 - 0
GameClient/Assets/Game/HotUpdate/Effect/AutoRotation.cs

@@ -0,0 +1,17 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class AutoRotation : MonoBehaviour
+{
+    public Vector3 EulerAngleSpeed;
+    public bool running = true;
+
+    void Update()
+    {
+        if (running && EulerAngleSpeed != Vector3.zero)
+        {
+            transform.localRotation = Quaternion.Euler(EulerAngleSpeed * Time.deltaTime) * transform.localRotation;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Effect/AutoRotation.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 99a33f4cc350ca44485132f794e31efc
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: