Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com> Reviewed-on: Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite#41
28 lines
433 B
C#
28 lines
433 B
C#
using System;
|
|
using AI;
|
|
using Base;
|
|
using Data;
|
|
using Entity;
|
|
using Unity.VisualScripting;
|
|
using UnityEngine;
|
|
|
|
namespace Prefab
|
|
{
|
|
public class EntityPrefab : MonoBehaviour
|
|
{
|
|
public Entity.Entity entity;
|
|
public Outline outline;
|
|
|
|
|
|
public void Init(Data.PawnDef pawnDef)
|
|
{
|
|
entity.Init(pawnDef);
|
|
|
|
outline.Init();
|
|
outline.Hide();
|
|
}
|
|
|
|
|
|
|
|
}
|
|
} |