Ejemplo n.º 1
0
 public void DoDiagChoice(int choice_id)
 {
     //Debug.Log("Select choice " + gameObject.name);
     current_choice.RunChoiceEffect(choice_id);
     current_choice = null;
     DialogueChoicePanel.Get().AfterSelectChoice();
 }
Ejemplo n.º 2
0
 public void CancelDiagChoice()
 {
     if (current_choice != null)
     {
         DialogueChoicePanel.Get().AfterSelectChoice();
         current_choice = null;
     }
 }
Ejemplo n.º 3
0
        public void StartDiagChoice(DialogueChoice dialogue_choice, DialogueActor player_trigger)
        {
            if (IsRunning())
                return;
            if (dialogue_choice == current_choice)
                return;

            //Debug.Log("Trigger choice " + gameObject.name);
            current_choice = dialogue_choice;
            choice_player = player_trigger;
            DialogueChoicePanel.Get().Show(dialogue_choice, player_trigger);
        }
Ejemplo n.º 4
0
 protected override void Awake()
 {
     base.Awake();
     _instance = this;
 }