Exemplo n.º 1
0
    public void Awake()
    {
        base.Awake();

        m_fader = GameObject.Find("Fader")?.GetComponent <RectTransform>();

        GameObject dialogManager = GameObject.Find("DialogManager");

        if (dialogManager != null)
        {
            m_dialogueManager = dialogManager.GetComponent <DialogueManager_MarioFernandes>();
        }
    }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     m_clueSystemScript      = gameObject.GetComponent <ClueSystem_JoaoBeijinho>();
     m_dialogueManagerScript = FindObjectOfType <DialogueManager_MarioFernandes>();
 }