void g__EventOnDetected(surfCLR.SURF surf) { MySimulationServiceState s = new MySimulationServiceState(); s._CS = surf.GetCS(); s._CX = surf.GetCX(); s._CY = surf.GetCY(); _mainport.Post(new TurnRight(s)); }
void _g__EventOnDetected2(int scale) { MySimulationServiceState s = new MySimulationServiceState(); s._CS = scale; // s._CX = 0; s._CY = 0; _mainport.Post(new Scale(s)); }