diff --git a/Assets/Scenes/乐/Sample1.unity b/Assets/Scenes/乐/Sample1.unity index 5474262..b8c6d34 100644 --- a/Assets/Scenes/乐/Sample1.unity +++ b/Assets/Scenes/乐/Sample1.unity @@ -349,6 +349,101 @@ MonoBehaviour: m_RequiresDepthTexture: 0 m_RequiresColorTexture: 0 m_Version: 2 +--- !u!1 &663361286 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 663361288} + - component: {fileID: 663361287} + - component: {fileID: 663361289} + m_Layer: 0 + m_Name: Tree + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!212 &663361287 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 663361286} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: a97c105638bdf8b4a8650670310a4cd3, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 7482667652216324306, guid: 48e93eef0688c4a259cb0eddcd8661f7, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 1, y: 1} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!4 &663361288 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 663361286} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 4.78, y: 0.75, z: 0} + m_LocalScale: {x: 1, y: 7.266563, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &663361289 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 663361286} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 037f21dc1592db342a165700917f287f, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &751536331 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/乐/Player.cs b/Assets/Scripts/乐/Player.cs index 67a0274..a608cab 100644 --- a/Assets/Scripts/乐/Player.cs +++ b/Assets/Scripts/乐/Player.cs @@ -64,6 +64,9 @@ public class Player : PlayerControl Flip(); } + void FixedUpdate() { + Moving(); + } /// /// 溯 @@ -109,7 +112,7 @@ public class Player : PlayerControl override protected void OnMove(InputAction.CallbackContext ctx) { base.OnMove(ctx); - m_rigidbody.velocity = new Vector2(inputDir*speed,m_rigidbody.velocity.y); + } override protected void OnAtk() { base.OnAtk(); @@ -124,7 +127,11 @@ public class Player : PlayerControl } override protected void OnInteract() { base.OnInteract(); - Leave.Instance.OnInteract(); + + } + + void Moving() { + m_rigidbody.velocity = new Vector2(inputDir * speed, m_rigidbody.velocity.y); } private void OnCollisionEnter2D(Collision2D collision)// diff --git a/Assets/Scripts/乐/Tree.cs b/Assets/Scripts/乐/Tree.cs new file mode 100644 index 0000000..390578d --- /dev/null +++ b/Assets/Scripts/乐/Tree.cs @@ -0,0 +1,18 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Tree : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/Assets/Scripts/乐/Tree.cs.meta b/Assets/Scripts/乐/Tree.cs.meta new file mode 100644 index 0000000..9f5a3ac --- /dev/null +++ b/Assets/Scripts/乐/Tree.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 037f21dc1592db342a165700917f287f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Logs/ApiUpdaterCheck.txt b/Logs/ApiUpdaterCheck.txt index f403dc6..6508084 100644 --- a/Logs/ApiUpdaterCheck.txt +++ b/Logs/ApiUpdaterCheck.txt @@ -48,3 +48,27 @@ C# parse time : -1ms candidates check time : -1ms console write time : -1ms +[api-updater (non-obsolete-error-filter)] 2022/3/14 8:27:53 : Starting D:/unity/2019.3.2f1/2020.3.30f1c1/Editor/Data/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe +[api-updater (non-obsolete-error-filter)] Exception caught while loading types from D:\unity\CangJie\Library\ScriptAssemblies\Unity.CollabProxy.Editor.dll (some types may not be loaded) + Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown. + at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool) + at System.Reflection.Assembly.GetTypes () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 + at APIUpdater.NonObsoleteApiUpdaterDetector.ExtraInfoParser+d__3.MoveNext () [0x000c8] in <00f49e0ec5f946baac3cd78779c2f2a8>:0 + Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. + +[api-updater (non-obsolete-error-filter)] Exception caught while loading types from D:\unity\CangJie\Library\ScriptAssemblies\Unity.TextMeshPro.Editor.dll (some types may not be loaded) + Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown. + at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool) + at System.Reflection.Assembly.GetTypes () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 + at APIUpdater.NonObsoleteApiUpdaterDetector.ExtraInfoParser+d__3.MoveNext () [0x000c8] in <00f49e0ec5f946baac3cd78779c2f2a8>:0 + Could not load file or assembly 'UnityEditor.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. + +[api-updater (non-obsolete-error-filter)] +---------------------------------- +jit/startup time : 798.0919ms +moved types parse time: 53ms +candidates parse time : 1ms +C# parse time : -1ms +candidates check time : -1ms +console write time : -1ms + diff --git a/UserSettings/EditorUserSettings.asset b/UserSettings/EditorUserSettings.asset index 1ec0d9e..614f2eb 100644 --- a/UserSettings/EditorUserSettings.asset +++ b/UserSettings/EditorUserSettings.asset @@ -21,6 +21,9 @@ EditorUserSettings: value: 22424703114646680e0b0227036cdbc9e6582b2b21382a357c67083debf42d flags: 0 RecentlyUsedScenePath-5: + value: 22424703114646680e0b0227036cdafbfb5831243c3d3204283a097df7ee3d2cfb + flags: 0 + RecentlyUsedScenePath-6: value: 22424703114646680e0b0227036cdafbfb583124382d34312e3d2936f1f47a2decee22f0 flags: 0 vcSharedLogLevel: