mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
23 lines
548 B
C#
23 lines
548 B
C#
using BehaviorDesigner.Runtime.Tasks;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class SetSkillAnimatorPattern : Action
|
|
{
|
|
public string skillName;
|
|
|
|
public string animatorEventPatternName;
|
|
|
|
public override TaskStatus OnUpdate()
|
|
{
|
|
BaseMonoAnimatorEntity component = GetComponent<BaseMonoAnimatorEntity>();
|
|
if (component is BaseMonoMonster)
|
|
{
|
|
BaseMonoMonster baseMonoMonster = component as BaseMonoMonster;
|
|
baseMonoMonster.SetSoleSkillAnimatorEventPattern(skillName, animatorEventPatternName);
|
|
}
|
|
return TaskStatus.Success;
|
|
}
|
|
}
|
|
}
|