error Consider storing the value in a temporary variable
class Hoge { public Sample Direction { get; private set;} void Foo () { Direction.y = 0; } public struct Sample { public int y; } }