Ejemplo n.º 1
0
        public void ExecuteFloat(ref WooState state, string varName, Expression expression)
        {
            double value   = expression.EvaluateFloat(ref state);
            double current = state.GetValueFloat(varName);

            state.SetValue(varName, value + current);
        }
Ejemplo n.º 2
0
 public void ExecuteVector(ref WooState state, string varName, Expression expression)
 {
     Vector3 value = expression.EvaluateVector(ref state);
     Vector3 current = state.GetValueVector(varName);
     current.x += value.x;
     current.y += value.y;
     current.z += value.z;
     state.SetValue(varName, current);
 }
Ejemplo n.º 3
0
        public void ExecuteVector(ref WooState state, string varName, Expression expression)
        {
            Vector3 value   = expression.EvaluateVector(ref state);
            Vector3 current = state.GetValueVector(varName);

            current.x += value.x;
            current.y += value.y;
            current.z += value.z;
            state.SetValue(varName, current);
        }
Ejemplo n.º 4
0
 public void ExecuteFloat(ref WooState state, string varName, Expression expression)
 {
     double value = expression.EvaluateFloat(ref state);
     double current = state.GetValueFloat(varName);
     state.SetValue(varName, value + current);
 }