public static void connectLanternToHiddenArea() { HiddenAreaConnector hac = GameObject.FindObjectOfType <HiddenAreaConnector>(); Selection.activeGameObject = hac.gameObject; hac.connect(); }
private void OnEnable() { hac = (HiddenAreaConnector)target; Selection.selectionChanged += populateFields; }