/// <summary> /// パネル除外 /// </summary> public void RemovePanel(TRPanel panel) { if (!m_UnusedPanels.Contains(panel)) { m_UnusedPanels.Add(panel); } }
/// <summary> /// デタッチ /// </summary> public void Detach() { m_Reserve = false; if (m_Panel != null) { m_Panel.Block = null; m_Panel = null; } }
/// <summary> /// アタッチ /// </summary> public void Attach(TRPanel panel, bool updatePanelPosition = false) { m_Panel = panel; m_Reserve = false; if (m_Panel != null) { m_Panel.Block = this; if (updatePanelPosition) { m_Panel.transform.position = Position; } } }
/// <summary> /// アタッチ予約 /// </summary> public void Reserve(TRPanel panel, bool updatePanelPosition = false) { Attach(panel, updatePanelPosition); m_Reserve = true; }