void OnEnable() { // Example of what you can do when an item is selected config = gameObject.GetComponent <SelectionBoxConfig> (); config.ItemPicked += DoThing; }
public void Setup() { selectionBoxConfig = gameObject.GetComponentInParent<SelectionBoxConfig> (); gameObject.GetComponent<RippleConfig>().highlightWhen = RippleConfig.HighlightActive.Never; }
public void Setup() { selectionBoxConfig = gameObject.GetComponentInParent <SelectionBoxConfig> (); }
void OnEnable () { // Example of what you can do when an item is selected config = gameObject.GetComponent<SelectionBoxConfig> (); config.ItemPicked += DoThing; }
public void Setup() { selectionBoxConfig = gameObject.GetComponentInParent <SelectionBoxConfig> (); gameObject.GetComponent <RippleConfig>().highlightWhen = RippleConfig.HighlightActive.Never; }