30 lines
916 B
C#
30 lines
916 B
C#
using DDD.RestaurantEvent;
|
|
using NUnit.Framework;
|
|
using UnityEngine;
|
|
|
|
namespace DDD
|
|
{
|
|
public class RestaurantCharacter : MonoBehaviour, IGameCharacter, IInteractor
|
|
{
|
|
private void Start()
|
|
{
|
|
//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()
|
|
{
|
|
// TODO : TODO_IMPLEMENT_ME
|
|
return null;
|
|
}
|
|
}
|
|
} |