public void Execute(ref WooState state) { Vector3 colourVec = _ColourExpr.EvaluateVector(ref state); Colour colour = new Colour(colourVec.x, colourVec.y, colourVec.z); Vector3 position = _PositionExpr.EvaluateVector(ref state); PointLight pointLight = new PointLight(colour, position); pointLight.CreateElement(state._Parent, position); }