47 lines
875 B
C#
47 lines
875 B
C#
using Axibug;
|
|
using Axibug.Runtime;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Game
|
|
{
|
|
public class MainRole : RoleBase
|
|
{
|
|
/// <summary>
|
|
/// ³õʼ»¯
|
|
/// </summary>
|
|
/// <param name="data"></param>
|
|
public void Init(S_ROLE_SELF data)
|
|
{
|
|
base.Init(data);
|
|
}
|
|
|
|
protected override void OnEnable()
|
|
{
|
|
base.OnEnable();
|
|
}
|
|
|
|
protected override void OnDisable()
|
|
{
|
|
base.OnDisable();
|
|
}
|
|
|
|
public override void MeshChangeMoveState(bool ToMoveState)
|
|
{
|
|
if (ToMoveState)
|
|
{
|
|
Anime.StartRun();
|
|
}
|
|
else
|
|
{
|
|
Anime.BackToIdle();
|
|
}
|
|
}
|
|
|
|
public override void Release()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|