public static NPCOvermap SpawnNPC(Character character) { Transform npcTransform = UnityEngine.Object.Instantiate(GameAssets.i.pfNPCOvermap, character.position, Quaternion.identity); NPCOvermap npcOvermap = npcTransform.GetComponent <NPCOvermap>(); npcOvermap.Setup(character, instance.playerOvermap); instance.npcList.Add(npcOvermap); return(npcOvermap); }