Files
taptap2024_GJ_chidouren/Assets/Scripts/Game/Component/PlayerEntity.cs
2024-10-16 00:03:41 +08:00

14 lines
290 B
C#

using UnityEngine;
namespace Game.Component
{
public class PlayerEntity : MonoBehaviour
{
public float speed = 10;
public void OnMove (Vector2 vector)
{
this.transform.Translate (vector * speed * Time.deltaTime);
}
}
}