mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 08:25:20 +01:00
47 lines
785 B
C#
47 lines
785 B
C#
namespace MoleMole
|
|
{
|
|
public class MonoFuka : BaseMonoAvatar
|
|
{
|
|
protected const string ATTACK_INDEX_NAME = "_AttackIndex";
|
|
|
|
public override void Awake()
|
|
{
|
|
base.Awake();
|
|
}
|
|
|
|
public override void SetTrigger(string name)
|
|
{
|
|
if (name == "TriggerAttack")
|
|
{
|
|
SetLocomotionInteger("_AttackIndex", 0);
|
|
}
|
|
else if (name == "TriggerSkill_2")
|
|
{
|
|
name = "TriggerAttack";
|
|
SetLocomotionInteger("_AttackIndex", 2);
|
|
}
|
|
base.SetTrigger(name);
|
|
}
|
|
|
|
public void SetPoseLeft()
|
|
{
|
|
SetLocomotionBool("_IsLeft", true);
|
|
}
|
|
|
|
public void SetPoseRight()
|
|
{
|
|
SetLocomotionBool("_IsLeft", false);
|
|
}
|
|
|
|
public void SetStateAir()
|
|
{
|
|
SetLocomotionBool("_IsAir", true);
|
|
}
|
|
|
|
public void SetStateGround()
|
|
{
|
|
SetLocomotionBool("_IsAir", false);
|
|
}
|
|
}
|
|
}
|