// Use this for initialization void Awake() { if (instance == null) { instance = this; } }
public void SetNarrativeController() { narrative_Controller = GetComponent <NarrativeController>(); if (narrative_Controller) { narrativeStatus = PlayNarrativeStatus.AVAILABLE; Debug.Log("Narrative found"); OnLoadNarrative(); } }
void Awake() { controller = this; narrativeID = 0; foreach (GameObject go in scrollPanels) { go.SetActive(false); } SetCurrentNarrativePhoto(); SwitchNarrative(); }
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); } }
private void Awake() { nc = GameObject.FindObjectOfType <NarrativeController>(); }
protected void DefaultBreak(int timesCalled) { NarrativeController.Write("Break " + name); }
protected void DefaultUse(int timesCalled) { NarrativeController.Write("Use " + name); }
public void Action() { Debug.Log("Action " + output); NarrativeController.Write(output); }
public void SetNarrativeController(NarrativeController _nCon) { N_Controller = _nCon; }
private void Start() { boxColl = GetComponent <BoxCollider2D>(); narrativeController = Toolbox.GetInstance().GetDialogueSystemManager().GetNarrativeController(); }