/// <summary> /// アクティベートされたコンポーネントをディスる /// <para>コンポーネント側のExit()から呼ばないこと</para>> /// </summary> public void DisactivateComponent() { if (activeComponent == null) { return; } activeComponent.Exit(); activeComponent = null; }
/// <summary> /// コンポーネントのアクティベート /// </summary> public void ActivateComponent(PolyPartsEditorComponent nextComponent) { if (activeComponent != null) { if (activeComponent != nextComponent) { DisactivateComponent(); } } activeComponent = nextComponent; }