Compare commits

..

No commits in common. "main" and "Navigation" have entirely different histories.

3 changed files with 6 additions and 8 deletions

View File

@ -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;
}
}

View File

@ -52,7 +52,7 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework.States
}
}
SHADE.Audio.SetParameterWithLabel("PlayerDetection", "Detected");
}
public override void OnExit()

View File

@ -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>();