using SHADE; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework { public class HomeOwnerAttackHitbox:Script { public GameObject aiGO; protected override void update() { Transform transform = GetComponent(); Transform aiTransform = aiGO.GetComponent(); if(transform) { transform.GlobalPosition = aiTransform.GlobalPosition; } } protected override void onTriggerStay(CollisionInfo info) { PlayerController pc = info.GameObject.GetScript(); HomeOwnerAI ai = aiGO.GetScript(); if (pc) { pc.GotCaught(); if(ai) ai.Reset(); } } } }