示例#1
0
    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();
    }
示例#2
0
    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);
    }