Exemplo n.º 1
0
    void Awake()
    {
        scener      = FindObjectOfType <AdvanceScene>();
        cineManager = FindObjectOfType <CinematicsManager>();

        if (textBack)
        {
            animateTextback = textBack.GetComponent <AnimateDialogue>();
        }

        wmManager  = FindObjectOfType <WorldMonologueManager>();
        camManager = FindObjectOfType <CameraManager>();

        if (monoReader == null)
        {
            monoReader = GetComponentInChildren <MonologueReader>();
        }
        if (monoReader.hostObj == null)
        {
            monoReader.hostObj = gameObject;
        }
        monoReader.monoManager = this;
    }