You've already forked taptap2024_GJ_chidouren
14 lines
290 B
C#
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);
|
|
}
|
|
}
|
|
} |