コード例 #1
0
        private void SetFromAndToValue(object ToValue)
        {
            Type type = ToValue.GetType();

            if (type == typeof(CatVector3))
            {
                CatVector3 value = (CatVector3)ToValue;
                toValue = value.ParameterClone();
            }
            else if (type == typeof(CatVector2))
            {
                CatVector2 value = (CatVector2)ToValue;

                toValue = value.ParameterClone();
            }
            else if (type == typeof(CatFloat))
            {
                CatFloat value = (CatFloat)ToValue;
                toValue = value.ParameterClone();
            }
            else if (type == typeof(CatInteger))
            {
                CatInteger value = (CatInteger)ToValue;
                toValue = value.ParameterClone();
            }
        }
コード例 #2
0
        private void SetFromValue()
        {
            Type type = refValue.GetType();

            if (type == typeof(CatVector3))
            {
                CatVector3 value = (CatVector3)refValue;
                fromValue = value.ParameterClone();
            }
            else if (type == typeof(CatVector2))
            {
                CatVector2 value = (CatVector2)refValue;
                fromValue = value.ParameterClone();
            }
            else if (type == typeof(CatFloat))
            {
                CatFloat value = (CatFloat)refValue;
                fromValue = value.ParameterClone();
            }
            else if (type == typeof(CatInteger))
            {
                CatInteger value = (CatInteger)refValue;
                fromValue = value.ParameterClone();
            }
        }