├── .DS_Store ├── Controls.meta ├── Controls ├── ButtonControl.cs ├── ButtonControl.cs.meta ├── PanelControl.cs ├── PanelControl.cs.meta ├── PathControl.cs ├── PathControl.cs.meta ├── TextControl.cs └── TextControl.cs.meta ├── README.md ├── UIElementNode.cs ├── UIElementNode.cs.meta ├── UIRouter.cs ├── UIRouter.cs.meta ├── app.unity └── app.unity.meta /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TumboTheGnome/react-unity/48e05bd0750d2a969fcbdc56ee5ea78899400fdb/.DS_Store -------------------------------------------------------------------------------- /Controls.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90b5a7122523f479aa038b134bb9e108 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Controls/ButtonControl.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | using System.Collections; 4 | 5 | namespace UnityEngine.UI.Routing 6 | { 7 | [RequireComponent(typeof(Button))] 8 | public class ButtonControl : UIElementNode 9 | { 10 | 11 | public UIRouter TargetRouter; 12 | public string ChangeRoute; 13 | public bool HideOnClick; 14 | 15 | private Button btn; 16 | private Image img; 17 | private Text txt; 18 | 19 | void Awake(){ 20 | btn = GetComponent