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:
szczuras4
2024-12-28 00:03:40 +01:00
parent c596494d77
commit e75b093317
553 changed files with 48087 additions and 68332 deletions

View File

@@ -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)