virtual protected void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag("Player")) { playerInRange = true; player = other.gameObject.GetComponentInParent <Player>().gameObject; playerCC = player.GetComponentInChildren <ContextClue>(); MeInteractable(); } }
private void Start() { context = GetComponentInChildren <ContextClue>(); MyItems = InfoManager.Instance.items; commonKeys = InfoManager.Instance.CommonKeys; uncommonKeys = InfoManager.Instance.UnCommonKeys; bossKeys = InfoManager.Instance.BossKeys; money = InfoManager.Instance.Money; currentAmmo = InfoManager.Instance.AmmoLeft; //dialogueBox = GameObject.Find("Dialogue Box"); dialogueText = dialogueBox.GetComponentInChildren <TextMeshProUGUI>(); }
protected virtual void Start() { CC = FindObjectOfType <ContextClue>(); DM = FindObjectOfType <DialogueManager>(); }
private void Start() { DM = FindObjectOfType <DialogueManager>(); CC = FindObjectOfType <ContextClue>(); }