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:
@@ -9,7 +9,7 @@ namespace Invector.vCharacterController.AI.FSMBehaviour
|
||||
{
|
||||
public override string categoryName
|
||||
{
|
||||
get { return "Controller/"; }
|
||||
get { return "Animator/"; }
|
||||
}
|
||||
public override string defaultName
|
||||
{
|
||||
@@ -18,7 +18,7 @@ namespace Invector.vCharacterController.AI.FSMBehaviour
|
||||
|
||||
public string _animationState;
|
||||
public int _layer;
|
||||
|
||||
public float crossfade=0.2f;
|
||||
public vPlayAnimationAction()
|
||||
{
|
||||
executionType = vFSMComponentExecutionType.OnStateEnter;
|
||||
@@ -26,7 +26,7 @@ namespace Invector.vCharacterController.AI.FSMBehaviour
|
||||
|
||||
public override void DoAction(vIFSMBehaviourController fsmBehaviour, vFSMComponentExecutionType executionType = vFSMComponentExecutionType.OnStateUpdate)
|
||||
{
|
||||
fsmBehaviour.aiController.animator.Play(_animationState, _layer);
|
||||
fsmBehaviour.aiController.animator.CrossFadeInFixedTime(_animationState,crossfade, _layer);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user