Пример #1
0
 // Use this for initialization
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Пример #2
0
 public void SetNarrativeController()
 {
     narrative_Controller = GetComponent <NarrativeController>();
     if (narrative_Controller)
     {
         narrativeStatus = PlayNarrativeStatus.AVAILABLE;
         Debug.Log("Narrative found");
         OnLoadNarrative();
     }
 }
Пример #3
0
    void Awake()
    {
        controller = this;

        narrativeID = 0;

        foreach (GameObject go in scrollPanels)
        {
            go.SetActive(false);
        }
        SetCurrentNarrativePhoto();
        SwitchNarrative();
    }
Пример #4
0
    private void Start()
    {
        NarrativeController narratvieController = FindObjectOfType <NarrativeController>();

        if (narratvieController == null)
        {
            return;
        }
        cutscene = narratvieController.GetNextCutscene();
        if (cutscene.Length > 0)
        {
            dialogueBox.gameObject.SetActive(true);
            AdvanceCutscene();
        }
        else
        {
            dialogueBox.gameObject.SetActive(false);
        }
    }
Пример #5
0
 private void Awake()
 {
     nc = GameObject.FindObjectOfType <NarrativeController>();
 }
Пример #6
0
 protected void DefaultBreak(int timesCalled)
 {
     NarrativeController.Write("Break " + name);
 }
Пример #7
0
 protected void DefaultUse(int timesCalled)
 {
     NarrativeController.Write("Use " + name);
 }
Пример #8
0
 public void Action()
 {
     Debug.Log("Action " + output);
     NarrativeController.Write(output);
 }
Пример #9
0
 public void SetNarrativeController(NarrativeController _nCon)
 {
     N_Controller = _nCon;
 }
Пример #10
0
 private void Start()
 {
     boxColl             = GetComponent <BoxCollider2D>();
     narrativeController = Toolbox.GetInstance().GetDialogueSystemManager().GetNarrativeController();
 }