poprawki materialy unity 6, pajaki, podmiana katalogu FSM w AIControlerze, zmiana w Spider 2.0 Behaviours , skopane zycie bylo, ladowalo pajaka z zyciem 2.
This commit is contained in:
27
Assets/ThirdParty/Invector-AIController/FSM/Scripts/Actions/vAnimatorSetTrigger.cs
vendored
Normal file
27
Assets/ThirdParty/Invector-AIController/FSM/Scripts/Actions/vAnimatorSetTrigger.cs
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Invector.vCharacterController.AI.FSMBehaviour
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
[vFSMHelpbox("This is a vAnimatorSetTrigger Action", UnityEditor.MessageType.Info)]
|
||||
#endif
|
||||
public class vAnimatorSetTrigger : vStateAction
|
||||
{
|
||||
public override string categoryName
|
||||
{
|
||||
get { return "Animator/"; }
|
||||
}
|
||||
public override string defaultName
|
||||
{
|
||||
get { return "vAnimatorSetTrigger"; }
|
||||
}
|
||||
public string trigger;
|
||||
[vToggleOption("Method","Set","Reset")]
|
||||
public bool reset;
|
||||
public override void DoAction(vIFSMBehaviourController fsmBehaviour, vFSMComponentExecutionType executionType = vFSMComponentExecutionType.OnStateUpdate)
|
||||
{
|
||||
if(reset) fsmBehaviour.aiController.animator.ResetTrigger(trigger);else fsmBehaviour.aiController.animator.SetTrigger(trigger);
|
||||
//TO DO
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user