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)
|
protected override void onTriggerStay(CollisionInfo info)
|
||||||
{
|
{
|
||||||
if (info.GameObject.GetScript<PlayerController>())
|
if(info.GameObject.GetScript<PlayerController>())
|
||||||
{
|
|
||||||
pc = info.GameObject.GetScript<PlayerController>();
|
pc = info.GameObject.GetScript<PlayerController>();
|
||||||
if (ai && ai.atk && pc)
|
if (ai && ai.atk && pc)
|
||||||
{
|
{
|
||||||
raccoonFound = true;
|
raccoonFound = true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework.States
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
SHADE.Audio.SetParameterWithLabel("PlayerDetection", "Detected");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public override void OnExit()
|
public override void OnExit()
|
||||||
|
|
|
@ -88,7 +88,7 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework.States
|
||||||
|
|
||||||
public override void update()
|
public override void update()
|
||||||
{
|
{
|
||||||
if (ai.hitboxScript.raccoonFound && machine.GetScript<HomeOwnerAI>().atk)
|
if (ai.hitboxScript.raccoonFound)
|
||||||
{
|
{
|
||||||
raccoonCaught = true;
|
raccoonCaught = true;
|
||||||
Transform pcTransform = ai.player.GetComponent<Transform>();
|
Transform pcTransform = ai.player.GetComponent<Transform>();
|
||||||
|
|
Loading…
Reference in New Issue