public override void Launch(EditMain _editmain) { base.Launch(_editmain); selectionEffect = Instantiate(inspectorEffectPrefab, transform).transform; effectColor = selectionEffect.GetComponent <ToolRingFXColor>(); selectionEffect.gameObject.SetActive(false); inspectorController = editMain.GetInspectorController(); inspectorController.onOpenActor = OnOpenActor; ForceUpdateTargetActor(); inspectorController.Show(); }
public override void ForceUpdateTargetActor() { if (editMain.GetSingleTargetActor() == null) { inspectorController.SetActor(null); UpdateSelectionEffectVisibility(false); return; } inspectorController.SetActor(editMain.GetSingleTargetActor()); // inspectorController.SwitchTab(toolMemory.inspectorTabIndex); inspectorController.Show(); UpdateSelectionEffectVisibility(true); }