void clearAttackPatrol(GameObject npc) { AttackScript attack = npc.GetComponent <AttackScript> (); attack.clearData(); }