46 lines
1.0 KiB
C#
46 lines
1.0 KiB
C#
|
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;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
/// </summary>
|
|||
|
protected ICharMachineBase Anime;
|
|||
|
|
|||
|
protected S_ROLE_DATA_BASE mData;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// <20><>ʼ<EFBFBD><CABC>
|
|||
|
/// </summary>
|
|||
|
/// <param name="data"></param>
|
|||
|
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();
|
|||
|
}
|
|||
|
}
|