2023-01-05 00:28:20 +08:00
|
|
|
|
using Axibug;
|
|
|
|
|
using Axibug.Runtime;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Game
|
|
|
|
|
{
|
2023-01-05 18:32:58 +08:00
|
|
|
|
public class MainRole : RoleBase
|
2023-01-05 00:28:20 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>ʼ<EFBFBD><CABC>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="data"></param>
|
|
|
|
|
public void Init(S_ROLE_SELF data)
|
|
|
|
|
{
|
|
|
|
|
base.Init(data);
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-05 18:32:58 +08:00
|
|
|
|
public override void MeshChangeState(bool ToMoveState)
|
|
|
|
|
{
|
|
|
|
|
if (ToMoveState)
|
|
|
|
|
{
|
|
|
|
|
Anime.StartRun();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Anime.BackToIdle();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-05 00:28:20 +08:00
|
|
|
|
public override void Release()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|