class Hoge { public Sample Direction; void Foo () { Direction.y = 0; } public struct Sample { public int y; } }