合并了分支
This commit is contained in:
commit
11b7428164
@ -349,6 +349,101 @@ MonoBehaviour:
|
|||||||
m_RequiresDepthTexture: 0
|
m_RequiresDepthTexture: 0
|
||||||
m_RequiresColorTexture: 0
|
m_RequiresColorTexture: 0
|
||||||
m_Version: 2
|
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
|
--- !u!1 &751536331
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -64,6 +64,9 @@ public class Player : PlayerControl
|
|||||||
Flip();
|
Flip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FixedUpdate() {
|
||||||
|
Moving();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 翻面函数
|
/// 翻面函数
|
||||||
@ -109,12 +112,13 @@ public class Player : PlayerControl
|
|||||||
override protected void OnMove(InputAction.CallbackContext ctx)
|
override protected void OnMove(InputAction.CallbackContext ctx)
|
||||||
{
|
{
|
||||||
base.OnMove(ctx);
|
base.OnMove(ctx);
|
||||||
m_rigidbody.velocity = new Vector2(inputDir*speed,m_rigidbody.velocity.y);
|
|
||||||
}
|
|
||||||
override protected void OnAtk() {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
override protected void OnAtk() {
|
||||||
|
base.OnAtk();
|
||||||
|
}
|
||||||
override protected void OnJump() {
|
override protected void OnJump() {
|
||||||
|
base.OnJump();
|
||||||
if (isGround == true) {
|
if (isGround == true) {
|
||||||
isGround = false;
|
isGround = false;
|
||||||
m_rigidbody.velocity = new Vector2(m_rigidbody.velocity.x, jumpForce);
|
m_rigidbody.velocity = new Vector2(m_rigidbody.velocity.x, jumpForce);
|
||||||
@ -122,7 +126,12 @@ public class Player : PlayerControl
|
|||||||
|
|
||||||
}
|
}
|
||||||
override protected void OnInteract() {
|
override protected void OnInteract() {
|
||||||
|
base.OnInteract();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Moving() {
|
||||||
|
m_rigidbody.velocity = new Vector2(inputDir * speed, m_rigidbody.velocity.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnCollisionEnter2D(Collision2D collision)//当有物体碰上
|
private void OnCollisionEnter2D(Collision2D collision)//当有物体碰上
|
||||||
|
18
Assets/Scripts/乐/Tree.cs
Normal file
18
Assets/Scripts/乐/Tree.cs
Normal file
@ -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()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Scripts/乐/Tree.cs.meta
Normal file
11
Assets/Scripts/乐/Tree.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 037f21dc1592db342a165700917f287f
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -48,3 +48,27 @@ C# parse time : -1ms
|
|||||||
candidates check time : -1ms
|
candidates check time : -1ms
|
||||||
console write 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+<LoadTypesWithMovedFromAttributeAsync>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+<LoadTypesWithMovedFromAttributeAsync>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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user