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:
28
Assets/ThirdParty/Invector-AIController/FSM/Scripts/Decisions/vIsInTrigger.cs
vendored
Normal file
28
Assets/ThirdParty/Invector-AIController/FSM/Scripts/Decisions/vIsInTrigger.cs
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Invector.vCharacterController.AI.FSMBehaviour
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
[vFSMHelpbox("This is a vIsInTrigger decision", UnityEditor.MessageType.Info)]
|
||||
#endif
|
||||
public class vIsInTrigger : vStateDecision
|
||||
{
|
||||
public override string categoryName
|
||||
{
|
||||
get { return "Trigger/"; }
|
||||
}
|
||||
|
||||
public override string defaultName
|
||||
{
|
||||
get { return "vIsInTrigger"; }
|
||||
}
|
||||
[vToggleOption("Method","Compare tag","Compare name")]
|
||||
public bool useName = false;
|
||||
public string compareTrigger;
|
||||
public override bool Decide(vIFSMBehaviourController fsmBehaviour)
|
||||
{
|
||||
|
||||
return useName? fsmBehaviour.aiController.IsInTriggerWithName(compareTrigger): fsmBehaviour.aiController.IsInTriggerWithTag(compareTrigger);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user