#GetComponentInParent

1 messages · Page 1 of 1 (latest)

broken storm
#

I'm gonna start a thread here so I don't clog up the channel any more

#
protected virtual void Awake()
        {
            OpenInteractibleEvent = Resources.Load<GameEvent>(OpenInteractibleEventLocation);
            CloseInteractibleEvent = Resources.Load<GameEvent>(CloseInteractibleEventLocation);
            _completedDeliveryEvent = Resources.Load<TaskEvent>(TaskEvent.TaskCompletedEventLocation);
            _activeInteractibles = 
                Resources.Load<ActiveInteractibles>(ActiveInteractibles.ActiveInteractibleLocation);
            _playerInventory = Resources.Load<PlayerInventory>(PlayerInventory.PlayerInventoryLocation);
            _outline = GetComponentInParent<Outline>();
            _outline.enabled = false;
        }
#

this is the awake that they're both calling

rancid ridge
#

Hmm, you are 100% sure that there are only 2 scripts of this in your scene? You can right click the script and find references in the scene

#

And they are both on InteractTrigger

broken storm
#

yes

#

there were 15 instances of the mailbox trigger

#

i just removed the outline from the prefab and re-added it and it works now lmao

#

classic

#

no clue what the problem was but hey it works

rancid ridge
broken storm
#

that's an incredible emote thank you