Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 void OnEnable()
 {
     node.EnableNode(this);
 }
Exemplo n.º 3
0
 protected virtual void Start()
 {
     comms.EnableNode(this);
 }