26 lines
668 B
C#
26 lines
668 B
C#
namespace Marro.PacManUdon
|
|
{
|
|
using System;
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
|
|
public abstract class GridMover : UdonSharpBehaviour
|
|
{
|
|
public virtual Vector2 GetPosition()
|
|
{
|
|
Debug.LogError($"{gameObject} does not implement GetPosition");
|
|
return Vector2.zero;
|
|
}
|
|
|
|
public virtual void SetPosition(Vector2 position)
|
|
{
|
|
Debug.LogError($"{gameObject} does not implement SetPosition");
|
|
}
|
|
|
|
public virtual Vector2 GetDirection()
|
|
{
|
|
Debug.LogError($"{gameObject} does not implement GetDirection");
|
|
return Vector2.zero;
|
|
}
|
|
}
|
|
} |