Пример #1
0
 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;
 }
Пример #3
0
 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;
		}
Пример #5
0
 public void Setup()
 {
     selectionBoxConfig = gameObject.GetComponentInParent <SelectionBoxConfig> ();
     gameObject.GetComponent <RippleConfig>().highlightWhen = RippleConfig.HighlightActive.Never;
 }