Esempio n. 1
0
 virtual protected void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Player"))
     {
         playerInRange = true;
         player        = other.gameObject.GetComponentInParent <Player>().gameObject;
         playerCC      = player.GetComponentInChildren <ContextClue>();
         MeInteractable();
     }
 }
Esempio n. 2
0
 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>();
 }
Esempio n. 3
0
 protected virtual void Start()
 {
     CC = FindObjectOfType <ContextClue>();
     DM = FindObjectOfType <DialogueManager>();
 }
Esempio n. 4
0
 private void Start()
 {
     DM = FindObjectOfType <DialogueManager>();
     CC = FindObjectOfType <ContextClue>();
 }