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:
30
Assets/ThirdParty/Invector-AIController/FSM/Scripts/Decisions/IsInShotAngleDecision.cs
vendored
Normal file
30
Assets/ThirdParty/Invector-AIController/FSM/Scripts/Decisions/IsInShotAngleDecision.cs
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Invector.vCharacterController.AI.FSMBehaviour
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
[vFSMHelpbox("This is a IsInShotAngleDecision decision", UnityEditor.MessageType.Info)]
|
||||
#endif
|
||||
public class IsInShotAngleDecision : vStateDecision
|
||||
{
|
||||
public override string categoryName
|
||||
{
|
||||
get { return "Combat/"; }
|
||||
}
|
||||
|
||||
public override string defaultName
|
||||
{
|
||||
get { return "IsInShotAngleDecision"; }
|
||||
}
|
||||
public override Type requiredType => typeof(vIControlAIShooter);
|
||||
public override bool Decide(vIFSMBehaviourController fsmBehaviour)
|
||||
{
|
||||
if (fsmBehaviour.aiController is vIControlAIShooter)
|
||||
{
|
||||
return (fsmBehaviour.aiController as vIControlAIShooter).IsInShotAngle;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user