Exemple #1
0
        public int statIndex;          //The stat this slider controls

        void OnEnable()
        {
            //Initial GetComponent Calls
            sliderComponent = GetComponent <Slider>();
            control         = GetComponent <SlidersControl>();
            view            = GetComponent <SlidersView>();

            //Subscribe to NodeManager events
            NodeManager.activeNodeUpdateEvent         += OnActiveNodeUpdate;
            NodeManager.nodeDeleteEvent               += OnNodeDelete;
            NodeModel.NodeModelRefreshActiveNodeEvent += OnRefreshActiveNodeEvent;
        }
Exemple #2
0
 void OnEnable()
 {
     model = GetComponent <SlidersModel>();
     view  = GetComponent <SlidersView>();
 }