protected override void ProcessInput(JOYSTICKBUTTON button) { switch(button) { case JOYSTICKBUTTON.JUMP: { Jump(); animation.Play("Jumping"); break; } case JOYSTICKBUTTON.FIRE: { break; } default: break; } }
protected virtual void ProcessQuestionInput(JOYSTICKBUTTON button) { }
protected override void ProcessQuestionInput(JOYSTICKBUTTON button) { switch (button) { case JOYSTICKBUTTON.JUMP: { qstate = QUESTIONSTATE.WAITING; currentQZone.GetComponent<QuestionZone>().SubmitAnswer(0, JoyStickNum - 1); print("A"); break; } case JOYSTICKBUTTON.FIRE: { qstate = QUESTIONSTATE.WAITING; currentQZone.GetComponent<QuestionZone>().SubmitAnswer(1, JoyStickNum - 1); print("B"); break; } default: break; } }