Beispiel #1
0
    public void OnGizmoSwitched(IHandleGizmo nextGizmo)
    {
        bool wasActive = currentGizmo.IsActive();

        currentGizmo.SetActive(false);
        currentGizmo = nextGizmo;
        currentGizmo.SetGizmoOnTarget(multiHolder);
        currentGizmo.SetActive(wasActive);
    }
Beispiel #2
0
    public TransformManipulatorManager()
    {
        Service.Events.AddListener(EventId.EntitiesSelected, OnEntitiesSelected);
        rotationHandle = new RotationHandle();
        rotationHandle.Start();
        translationHandle = new TranslationHandle();
        translationHandle.Start();
        Service.FrameUpdate.RegisterForUpdate(this);
        GameObject multiHolderGameObject = new GameObject();

        multiHolder  = multiHolderGameObject.transform;
        currentGizmo = translationHandle;
    }