private void InitializeSign(Signage sign, string name, Vector3 localPosition, Vector3 localRotation) { BaseEntity[] children = sign.children.Where(x => x.GetComponent <DroppedItem>())?.ToArray() ?? null; if (children != null) { for (int i = 0; i < children.Length; i++) { sign.RemoveChild(children[i]); children[i].Kill(); } } DroppedItem skullItem = CreateSkullItem(name, sign, localPosition, localRotation); UpdateSignImage(sign, name); signRegisteredSkulls.Add(sign, skullItem); }