Exemplo n.º 1
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;
    }
Exemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        Movement();

        if (_dt.activeOnEnter)
        {
            _dt.SetActiveOnEnterFalse();
        }
    }
Exemplo n.º 3
0
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.E) && _eToInteractActive)
        {
            _eToInteractActive = false;
            _eToInteract.EtoInteractIsActive(_eToInteractActive);
            _clubNotFound = false;
        }

        if (_dt.activeOnEnter)
        {
            _dt.SetActiveOnEnterFalse();
        }
    }
Exemplo n.º 4
0
    // Update is called once per frame
    void Update()
    {
        if (_dt.activeOnEnter)
        {
            _dt.SetActiveOnEnterFalse();
        }

        if (_inOnTrigger)
        {
            if (Input.GetKeyDown(KeyCode.E) && _initialDialog)
            {
                _dt.TriggerDialog();
                _eKey.EtoInteractIsActive(false);
                _initialDialog = false;
            }
        }
    }