public void MoveUpNextAttack(PanelAttackIfStatement p) { if (!M.IsFirstSibling(p.transform)) { p.transform.SetSiblingIndex(p.transform.GetSiblingIndex() - 1); } }
public void MoveDownNextAttack(PanelAttackIfStatement p) { if (!M.IsLastSibling(p.transform)) { p.transform.SetSiblingIndex(Mathf.Min(p.transform.parent.childCount - 2, p.transform.GetSiblingIndex() + 1)); } }
public void RemoveNextAttack(PanelAttackIfStatement p) { nextAttackList.Remove(p); Destroy(p.gameObject); }