Ejemplo n.º 1
0
        public void Awake()
        {
            _canvasController = ApplicationController.Instance.CanvasController;

            if (_canvasController)
            {
                GrowPool(_initialPoolSize);
            }
        }
Ejemplo n.º 2
0
        private void Awake()
        {
            _grid = FindObjectOfType <BulbGrid>();
            if (_grid)
            {
                _grid.OnGridChanged += UpdateVisuals;
                _grid.OnGridChanged += UpdateWirePieces;
                _canvasController    = ApplicationController.Instance.CanvasController;

                SettingsManager.Settings.ShowCurrent.PropertyChanged += ShowDebugValue;
                SettingsManager.Settings.ShowVoltage.PropertyChanged += ShowDebugValue;
                SettingsManager.PropertyChanged += SettingsManager_PropertyChanged;
            }
        }