using Axibug;
using Axibug.Runtime;
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Game
{
public abstract class RoleBase : MonoBehaviour
{
protected E_NODE_TYPE mRoleType => mData.RoleType;
protected Int64 mRoleID => mData.innate.roleid;
///
/// ¶¯»¿ØÖÆÆ÷
///
protected ICharMachineBase Anime;
protected S_ROLE_DATA_BASE mData;
///
/// ³õʼ»¯
///
///
public virtual void Init(S_ROLE_DATA_BASE data)
{
mData = data;
if (mRoleType == E_NODE_TYPE.N_MAINPLAYER)
{
Anime = new CharacterMachine();
Anime.InitMachine(transform.Find("Model"));
}
else if (mRoleType == E_NODE_TYPE.N_MONSTER)
{
}
else if (mRoleType == E_NODE_TYPE.N_NPC)
{
}
}
public abstract void Release();
}
}