示例#1
0
        public override void SetConfig(InputProviderConfig config)
        {
            var layerNames     = config.RaycastLayer.Trim();
            var layerNameArray = layerNames.Split(',');

            _raycastMask = 0;
            for (int i = 0; i < layerNameArray.Length; i++)
            {
                var layer = LayerMask.NameToLayer(layerNameArray[i]);
                _raycastMask |= 1 << layer;
            }

            _maxRaycastDistance = config.RaycastMaskDistance;
        }
示例#2
0
 public virtual void SetConfig(InputProviderConfig config)
 {
 }