Example #1
0
    public static void connectLanternToHiddenArea()
    {
        HiddenAreaConnector hac = GameObject.FindObjectOfType <HiddenAreaConnector>();

        Selection.activeGameObject = hac.gameObject;
        hac.connect();
    }
Example #2
0
 private void OnEnable()
 {
     hac = (HiddenAreaConnector)target;
     Selection.selectionChanged += populateFields;
 }