↧
Answer by nsxdavid
Easy, you cache it yourself: Create a variable on your class to hold a reference to the component and do the GetComponent<> once in your start method and use that variable everywhere else in your...
View ArticleAnswer by bunCBG
You can achieve something similar if all of your trigger classes are in the same hierarchy. For example: abstract public class AbstractTrigger : MonoBehavior { ... } public class LedgeTrigger :...
View Article