コード例 #1
0
 private void Event_OnRobotClickPlaceholder(object sender, EventEmitter.IntegerEventArgs e)
 {
     if (e.Value == index)
     {
         OnRobotClick();
     }
 }
コード例 #2
0
    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;
        }
    }
コード例 #3
0
 private void Event_OnClickPlaceholder(object sender, EventEmitter.IntegerEventArgs e)
 {
     MakeMove(e.Value);
 }