Esempio n. 1
0
        void CreateHandles()
        {
            switch (type)
            {
            case HandleType.POSITION:
                positionHandle = gameObject.AddComponent <PositionHandle>().Initialize(this);
                break;

            case HandleType.ROTATION:
                rotationHandle = gameObject.AddComponent <RotationHandle>().Initialize(this);
                break;

            case HandleType.SCALE:
                scaleHandle = gameObject.AddComponent <ScaleHandle>().Initialize(this);
                break;
            }
        }