Ejemplo n.º 1
0
    private void DecisionProcess()
    {
        state = DecisionControllerState.WaitingForChoice;

        // Place the choices
        ShowChoices();
    }
Ejemplo n.º 2
0
    private void OnChoiceMade(Decision decision)
    {
        choice = decision;
        state  = DecisionControllerState.DisplayingResult;
        time   = 0.0f;

        // Post a message to notify all other components that a choice was made
        Message message = new Message((int)MessageDestination.DECISION_CHOICE_MADE, "", choice);

        Controller.PropagateMessage(message);

        // Hide the choices
        HideChoices();

        // Show the feedback
        ShowFeedback();
    }
Ejemplo n.º 3
0
 private void StartDisplay()
 {
     state = DecisionControllerState.DisplayingResult;
 }
Ejemplo n.º 4
0
 private void ResetState()
 {
     state = DecisionControllerState.Inactive;
 }