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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user