(client) feat:添加临时动画组件,添加逃跑逻辑
This commit is contained in:
28
Client/Assets/Scripts/Test/TempAnimationTest.cs
Normal file
28
Client/Assets/Scripts/Test/TempAnimationTest.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Managers;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Test
|
||||
{
|
||||
public class TempAnimationTest:MonoBehaviour
|
||||
{
|
||||
private void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (Input.GetMouseButtonDown(0))
|
||||
{
|
||||
TemporaryAnimationManager.Instance.GenerateTemporaryAnimation("1,2,3,4,5,1,2,3,4,5",
|
||||
Camera.main.ScreenToWorldPoint(Input.mousePosition));
|
||||
}
|
||||
|
||||
if (Input.GetMouseButtonDown(1))
|
||||
{
|
||||
TemporaryAnimationManager.Instance.GenerateTemporaryAnimationUI("1,2,3,4,5,1,2,3,4,5",Input.mousePosition);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
3
Client/Assets/Scripts/Test/TempAnimationTest.cs.meta
Normal file
3
Client/Assets/Scripts/Test/TempAnimationTest.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7a743a0b262a45d8bb1203e776cbbe00
|
||||
timeCreated: 1757066158
|
Reference in New Issue
Block a user