Exemplo n.º 1
0
 void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(gameObject);
     }
     instance = this;
     DontDestroyOnLoad(gameObject);
 }
Exemplo n.º 2
0
 //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();
 }
Exemplo n.º 4
0
 /// <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);
 }
Exemplo n.º 6
0
    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>();
 }
Exemplo n.º 8
0
 void Start()
 {
     instance = this;
     //dialogueText.text = dialogueLines[currentLine];
 }
Exemplo n.º 9
0
 // Use this for initialization
 void Start()
 {
     dialMan = dialogueManager.instance;
     TriggerNextInstance();
     GlitchManager.instance.OnChangingText();
 }
Exemplo n.º 10
0
 public void getStarted()
 {
     dm = GetComponent <dialogueManager>();
 }
 // Start is called before the first frame update
 void Start()
 {
     cam  = FindObjectOfType <CameraController>();
     diaM = FindObjectOfType <dialogueManager>();
 }