Example #1
0
        void OnEnable()
        {
            comms.EnableNode(this);

            if (!GameObject.FindObjectsOfType <AudioListener>().Any())
            {
                gameObject.AddComponent <AudioListener>();
            }

            if (uiController != null)
            {
                UpdateUIController(Volume);
                uiController.onValueChanged.RemoveListener(OnValueChange);
                uiController.onValueChanged.AddListener(OnValueChange);
            }
        }
Example #2
0
 void OnEnable()
 {
     node.EnableNode(this);
 }
Example #3
0
 protected virtual void Start()
 {
     comms.EnableNode(this);
 }