Exemple #1
0
        // TODO Has light tube


        protected override void Start()
        {
            base.Start();

            _spriteRenderer  = GetComponent <SpriteRenderer>();
            _lightSourceInfo = new LightSourceInfo(PositionProvider, Color.white, _lightRange, 1, 0.05f);

            VisionController.SetLightContinuous(_lightSourceInfo);
        }
        protected override void Start()
        {
            base.Start();

            _renderer  = GetComponent <SpriteRenderer>();
            _prevState = _isOn;

            //_lightSourceInfo = new LightSourceInfo(PositionProvider, Color.white, _range, );

            _lightSourceId = VisionController.SetLightContinuous(this);
            OnLightingStateChange(_isOn);
        }