Initial commit
This commit is contained in:
26
Assets/Scripts/GridMover.cs
Normal file
26
Assets/Scripts/GridMover.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
namespace Marro.PacManUdon
|
||||
{
|
||||
using System;
|
||||
using UdonSharp;
|
||||
using UnityEngine;
|
||||
|
||||
public abstract class GridMover : UdonSharpBehaviour
|
||||
{
|
||||
public virtual Vector2 GetPosition()
|
||||
{
|
||||
Debug.LogWarning($"{gameObject} does not implement GetPosition");
|
||||
return Vector2.zero;
|
||||
}
|
||||
|
||||
public virtual void SetPosition(Vector2 position)
|
||||
{
|
||||
Debug.LogWarning($"{gameObject} does not implement SetPosition");
|
||||
}
|
||||
|
||||
public virtual Vector2 GetDirection()
|
||||
{
|
||||
Debug.LogWarning($"{gameObject} does not implement GetDirection");
|
||||
return Vector2.zero;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user