void Awake() { if (instance != null && instance != this) { Destroy(gameObject); } instance = this; DontDestroyOnLoad(gameObject); }
//references to dialogueManager public void Awake() { if (instance != null) { Debug.LogWarning("fix this" + gameObject.name); } else { instance = this; } }
// Use this for initialization void Start() { dialMan = dialogueManager.instance; TriggerNextInstance (); GlitchManager.instance.OnChangingText(); }
/// <summary> /// Loads dialogueManager in the start of every scene /// </summary> // Use this for initialization void Start() { dMAn = FindObjectOfType <dialogueManager>(); }
void Awake() { if (instance != null && instance != this) { Destroy (gameObject); } instance = this; DontDestroyOnLoad (gameObject); }
public static bool cut; //true to cut the dialog, false otherwise private void Awake() { dM = this; statCanv = canvas; }
// Start is called before the first frame update void Start() { dMan = GameObject.Find("UI").transform.Find("UI-GAME").transform.Find("dialogueManager").GetComponent <dialogueManager>(); }
void Start() { instance = this; //dialogueText.text = dialogueLines[currentLine]; }
// Use this for initialization void Start() { dialMan = dialogueManager.instance; TriggerNextInstance(); GlitchManager.instance.OnChangingText(); }
public void getStarted() { dm = GetComponent <dialogueManager>(); }
// Start is called before the first frame update void Start() { cam = FindObjectOfType <CameraController>(); diaM = FindObjectOfType <dialogueManager>(); }