예제 #1
0
        public static VLSRadial CreateRadial()
        {
            GameObject go  = new GameObject("VLS2D Radial", typeof(VLSRadial));
            VLSRadial  l2d = go.GetComponent <VLSRadial>();

            l2d.transform.localScale = Vector3.one * VLSGlobals.DEFAULT_LIGHT_SCALE;
            l2d.ShadowLayer          = VLSGlobals.DEFAULT_LIGHT_SHADOW_LAYER;
            l2d.gameObject.layer     = VLSGlobals.DEFAULT_LIGHT_LAYER;

            return(l2d);
        }
예제 #2
0
        static void CreateRadialLight()
        {
            VLSRadial l2D = VLSLight.CreateRadial();

            Selection.activeGameObject = l2D.gameObject;
        }