mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 08:25:20 +01:00
21 lines
485 B
C#
21 lines
485 B
C#
using BehaviorDesigner.Runtime.Tasks;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public abstract class BaseAvatarAction : Action
|
|
{
|
|
protected BaseMonoAvatar _avatar;
|
|
|
|
protected AvatarActor _avatarActor;
|
|
|
|
protected AvatarAIPlugin _avatarAIPlugin;
|
|
|
|
public override void OnAwake()
|
|
{
|
|
_avatar = GetComponent<BaseMonoAvatar>();
|
|
_avatarActor = Singleton<EventManager>.Instance.GetActor<AvatarActor>(_avatar.GetRuntimeID());
|
|
_avatarAIPlugin = _avatarActor.GetPlugin<AvatarAIPlugin>();
|
|
}
|
|
}
|
|
}
|