17 lines
433 B
C#
17 lines
433 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace MedievalParty.Entity
|
|
{
|
|
public abstract class EntityObject: MonoBehaviour
|
|
{
|
|
public static event EventHandler<int> onAnyEntityNumberRoll;
|
|
|
|
public void SetCharacter(EntitySO entity)
|
|
{
|
|
Instantiate(entity.visual, transform);
|
|
}
|
|
|
|
protected void NumberRolled(int number) => onAnyEntityNumberRoll?.Invoke(this, number);
|
|
}
|
|
} |