public static void DestroyAllFocus() { // Enable scrolling. if (ScenePrimer.curPrimerComponent.curZoomComp != null) { ScenePrimer.curPrimerComponent.curZoomComp.zoomingEnabled = true; } // Re-enable input. ScenePrimer.curPrimerComponent.disableInput = true; GlobalToolManager.DisableInput(true); if (focusSeparates != null) { for (int i = 0; i < focusSeparates.Length; i++) { GameObject.Destroy(focusSeparates[i]); } focusSeparates = null; } GameObject.Destroy(curFocusObj); GameObject.Destroy(focusInstanceObj); }
public override void AwakeActionComponent() { this.GetComponent <UiIntractable>().curAC = this; ScenePrimer.curPrimerComponent.disableInput = true; GlobalToolManager.DisableInput(true); }