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:
@@ -82,9 +82,9 @@ namespace Invector.vCharacterController.AI.FSMBehaviour
|
||||
|
||||
public virtual void OnStateEnter(vIFSMBehaviourController fsmBehaviour)
|
||||
{
|
||||
if (resetCurrentDestination)
|
||||
fsmBehaviour.aiController.Stop();
|
||||
|
||||
if (resetCurrentDestination && fsmBehaviour.aiController!=null)
|
||||
fsmBehaviour.aiController.Stop();
|
||||
|
||||
if (components == null)
|
||||
components = new FSMComponent(actions);
|
||||
if (useActions && components != null)
|
||||
@@ -95,10 +95,13 @@ namespace Invector.vCharacterController.AI.FSMBehaviour
|
||||
{
|
||||
if (components == null)
|
||||
components = new FSMComponent(actions);
|
||||
|
||||
if (useActions && components != null)
|
||||
components.DoActions(fsmBehaviour, vFSMComponentExecutionType.OnStateUpdate);
|
||||
components.DoActions(fsmBehaviour, vFSMComponentExecutionType.OnStateUpdate);
|
||||
|
||||
fsmBehaviour.ChangeState(TransitTo(fsmBehaviour));
|
||||
|
||||
|
||||
fsmBehaviour.ChangeState(TransitTo(fsmBehaviour));
|
||||
}
|
||||
|
||||
public virtual void OnStateExit(vIFSMBehaviourController fsmBehaviour)
|
||||
|
||||
Reference in New Issue
Block a user