示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        _dt   = GetComponent <DialogTrigger>();
        _eKey = GetComponentInChildren <EtoInteract>();

        _initialDialog = true;
    }
示例#2
0
    // Start is called before the first frame update
    void Start()
    {
        _clubNotFound = true;
        _eventManager = EventManager.Instance != null ? EventManager.Instance : FindObjectOfType <EventManager>();
        if (_eventManager == null)
        {
            Debug.Log("Event Manager is null");
        }

        _eToInteract = GetComponentInChildren <EtoInteract>();
        if (_eToInteract == null)
        {
            Debug.Log("Player Canvas is NULL");
        }

        _dt = GetComponent <DialogTrigger>();
        if (_dt == null)
        {
            Debug.Log("Dialog Trigger is NULL");
        }

        _dt.SetActiveOnEnterFalse();

        _eventManager.ClubFound += StartHintDialog;
    }