private void Event_OnRobotClickPlaceholder(object sender, EventEmitter.IntegerEventArgs e) { if (e.Value == index) { OnRobotClick(); } }
private void Event_OnDifficultyChange(object sender, EventEmitter.IntegerEventArgs e) { switch (e.Value) { case 0: difficulty = Difficulty.EASY; break; case 1: difficulty = Difficulty.MEDIUM; break; case 2: difficulty = Difficulty.HARD; break; default: difficulty = Difficulty.EASY; break; } }
private void Event_OnClickPlaceholder(object sender, EventEmitter.IntegerEventArgs e) { MakeMove(e.Value); }