Compare commits
No commits in common. "main" and "Navigation" have entirely different histories.
main
...
Navigation
|
@ -50,13 +50,11 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework
|
|||
|
||||
protected override void onTriggerStay(CollisionInfo info)
|
||||
{
|
||||
if (info.GameObject.GetScript<PlayerController>())
|
||||
{
|
||||
if(info.GameObject.GetScript<PlayerController>())
|
||||
pc = info.GameObject.GetScript<PlayerController>();
|
||||
if (ai && ai.atk && pc)
|
||||
{
|
||||
raccoonFound = true;
|
||||
}
|
||||
if (ai && ai.atk && pc)
|
||||
{
|
||||
raccoonFound = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework.States
|
|||
}
|
||||
|
||||
}
|
||||
SHADE.Audio.SetParameterWithLabel("PlayerDetection", "Detected");
|
||||
|
||||
|
||||
}
|
||||
public override void OnExit()
|
||||
|
|
|
@ -88,7 +88,7 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework.States
|
|||
|
||||
public override void update()
|
||||
{
|
||||
if (ai.hitboxScript.raccoonFound && machine.GetScript<HomeOwnerAI>().atk)
|
||||
if (ai.hitboxScript.raccoonFound)
|
||||
{
|
||||
raccoonCaught = true;
|
||||
Transform pcTransform = ai.player.GetComponent<Transform>();
|
||||
|
|
Loading…
Reference in New Issue