project_files/HedgewarsMobile/Classes/MissionTrainingViewController.m
branchios-revival
changeset 11116 102684240fe8
parent 10108 c68cf030eded
child 11119 f08d5bb1d2b0
equal deleted inserted replaced
11115:3729ac42189b 11116:102684240fe8
    63 -(IBAction) buttonPressed:(id) sender {
    63 -(IBAction) buttonPressed:(id) sender {
    64     UIButton *button = (UIButton *)sender;
    64     UIButton *button = (UIButton *)sender;
    65 
    65 
    66     if (button.tag == 0) {
    66     if (button.tag == 0) {
    67         [[AudioManagerController mainManager] playBackSound];
    67         [[AudioManagerController mainManager] playBackSound];
    68         [[self parentViewController] dismissModalViewControllerAnimated:YES];
    68         [self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
    69     } else {
    69     } else {
    70         [GameInterfaceBridge registerCallingController:self];
    70         [GameInterfaceBridge registerCallingController:self];
    71         [GameInterfaceBridge startMissionGame:self.missionName];
    71         [GameInterfaceBridge startMissionGame:self.missionName];
    72     }
    72     }
    73 }
    73 }