Compare commits
3 Commits
Navigation
...
main
Author | SHA1 | Date |
---|---|---|
Sri Sham Haran | 0f7d86543f | |
Glence | 8ffca03f16 | |
XiaoQiDigipen | 724f8ae2cf |
|
@ -50,11 +50,13 @@ 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)
|
||||
if (ai.hitboxScript.raccoonFound && machine.GetScript<HomeOwnerAI>().atk)
|
||||
{
|
||||
raccoonCaught = true;
|
||||
Transform pcTransform = ai.player.GetComponent<Transform>();
|
||||
|
|
Loading…
Reference in New Issue