Ejemplo n.º 1
0
        public override StLightData GetStLightData()
        {
            var data = new StLightData
            {
                LightType  = IsActive ? LIGHT_TYPE : -1,
                LightData  = new Vector4(LightColor.r, LightColor.g, LightColor.b, LightPower),
                LightData2 = transform.position
            };

            return(data);
        }
Ejemplo n.º 2
0
        public override StLightData GetStLightData()
        {
            var data = new StLightData
            {
                LightType  = IsActive ? LIGHT_TYPE : -1,
                LightData  = LightColor,
                LightData2 = transform.forward
            };

            return(data);
        }