コード例 #1
0
    public void SetValue(MorphingValueType _type, ValueData _value)
    {
        switch (_type)
        {
        case MorphingValueType.Position:
            CamTrans.position = MorphingTool.GetData(CamTrans.position, _value);
            break;

        case MorphingValueType.localPosition:
            CamTrans.localPosition = MorphingTool.GetData(CamTrans.localPosition, _value);
            break;

        case MorphingValueType.Rotation:
            CamTrans.rotation = MorphingTool.GetData(CamTrans.rotation, _value);
            break;

        case MorphingValueType.localRotation:
            break;

        case MorphingValueType.localScale:
            break;

        case MorphingValueType.color:
            break;

        case MorphingValueType.value:
            break;
        }
    }
コード例 #2
0
    public void SetValue(MorphingValueType _type, ValueData _value)
    {
        switch (_type)
        {
        case MorphingValueType.Position:
            break;

        case MorphingValueType.localPosition:
            VirTrans.localPosition = MorphingTool.GetData(VirTrans.localPosition, _value);
            break;

        case MorphingValueType.Rotation:
            break;

        case MorphingValueType.localRotation:
            break;

        case MorphingValueType.localScale:
            Trans.localScale = MorphingTool.GetData(Trans.localScale, _value);
            break;

        case MorphingValueType.color:
            break;

        case MorphingValueType.value:
            MatChange(MorphingTool.GetData(_value));
            break;
        }
    }