ProjectDDD/Assets/_DDD/_Scripts/RestaurantCharacter/RestaurantCharacter.cs

30 lines
916 B
C#
Raw Normal View History

using DDD.RestaurantEvent;
using NUnit.Framework;
2025-07-09 09:45:11 +00:00
using UnityEngine;
namespace DDD
{
public class RestaurantCharacter : MonoBehaviour, IGameCharacter, IInteractor
2025-07-09 09:45:11 +00:00
{
private void Start()
{
2025-07-24 08:43:39 +00:00
//TODO_IMPLEMENT_ME();
// TODO : Add event solvers dynamically
for (int i = (int)InteractionType.Count; i < (int)InteractionType.Count; i++)
{
InteractionType interactionType = (InteractionType)i;
// TODO : if this character should handle the interaction?
if(RestaurantEventSolvers.TypeToSolver.TryGetValue(interactionType, out var solverType))
{
gameObject.AddComponent(solverType);
}
}
}
public GameObject GetInteractorGameObject()
{
2025-07-24 08:43:39 +00:00
// TODO : TODO_IMPLEMENT_ME
return null;
}
2025-07-09 09:45:11 +00:00
}
}