public override void PressButton(int buttonId) { //Press the corresponding button switch (buttonId) { case 0: if (gestureQuickUIButton.interactable) { gestureQuickButton.Press(); } break; case 1: if (gestureHeavyUIButton.interactable) { gestureHeavyButton.Press(); } break; case 2: if (gestureSpecialUIButton.interactable) { gestureSpecialButton.Press(); } break; case 3: if (gestureOffensiveUIButton.interactable) { gestureOffensiveButton.Press(); } break; case 4: if (gestureDefensiveUIButton.interactable) { gestureDefensiveButton.Press(); } break; case 5: startButton.Press(); break; case 6: restartButton.Press(); break; case 7: backButton.Press(); break; } }
public override void PressButton(int buttonId) { //Press the corresponding button switch (buttonId) { case 0: if (leftFireUIButton.interactable) { leftFireButton.Press(); } break; case 1: if (leftWaterUIButton.interactable) { leftWaterButton.Press(); } break; case 2: if (leftEarthUIButton.interactable) { leftEarthButton.Press(); } break; case 3: if (leftAirUIButton.interactable) { leftAirButton.Press(); } break; case 4: if (rightFireUIButton.interactable) { rightFireButton.Press(); } break; case 5: if (rightWaterUIButton.interactable) { rightWaterButton.Press(); } break; case 6: if (rightEarthUIButton.interactable) { rightEarthButton.Press(); } break; case 7: if (rightAirUIButton.interactable) { rightAirButton.Press(); } break; case 8: if (fightUIButton.interactable) { fightButton.Press(); } break; case 9: backButton.Press(); break; default: break; } }