You've already forked taptap2024_GJ_chidouren
init
This commit is contained in:
14
Assets/Scripts/Game/Component/PlayerEntity.cs
Normal file
14
Assets/Scripts/Game/Component/PlayerEntity.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user