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

@@ -3,7 +3,6 @@
namespace Invector.vCharacterController.AI.FSMBehaviour
{
#if UNITY_EDITOR
[vFSMHelpbox("Add health to the current HealthController", UnityEditor.MessageType.Info)]
#endif
public class vAddHealth : vStateAction
@@ -22,7 +21,6 @@ namespace Invector.vCharacterController.AI.FSMBehaviour
[Header("This action won't work with the DecisionTimer")]
public float timeToAdd = 1f;
public int healthToRecovery = 1;
public override void DoAction(vIFSMBehaviourController fsmBehaviour, vFSMComponentExecutionType executionType = vFSMComponentExecutionType.OnStateUpdate)
@@ -37,7 +35,7 @@ namespace Invector.vCharacterController.AI.FSMBehaviour
if (InTimer(fsmBehaviour, timeToAdd))
{
fsmBehaviour.aiController.AddHealth(healthToRecovery);
fsmBehaviour.aiController.ChangeHealth(healthToRecovery);
}
}
}