移除ECM2
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: af237fa0d4164de3b8bbb1640d85f70b
|
||||
timeCreated: 1700798056
|
||||
@@ -1,35 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace ECM2.Examples.SideScrolling
|
||||
{
|
||||
/// <summary>
|
||||
/// This example shows how to implement a typical side-scrolling movement with side to side rotation snap.
|
||||
/// </summary>
|
||||
|
||||
public class SideScrollingInput : CharacterInput
|
||||
{
|
||||
protected override void Awake()
|
||||
{
|
||||
// Call base method implementation
|
||||
|
||||
base.Awake();
|
||||
|
||||
// Disable Character rotation, well handle it here (snap move direction)
|
||||
|
||||
character.SetRotationMode(Character.RotationMode.None);
|
||||
}
|
||||
|
||||
protected override void HandleInput()
|
||||
{
|
||||
// Add horizontal movement (in world space)
|
||||
|
||||
Vector2 movementInput = GetMovementInput();
|
||||
character.SetMovementDirection(Vector3.right * movementInput.x);
|
||||
|
||||
// Snap side to side rotation
|
||||
|
||||
if (movementInput.x != 0)
|
||||
character.SetYaw(movementInput.x * 90.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8f138cba3d2dc7146817f32230b4f5b5
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9d6613720d4108f4fa955b37a378bbdc
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user