コード例 #1
0
        public static VLSRadialCS CreateRadialCS()
        {
            GameObject  go  = new GameObject("VLS2D RadialCS", typeof(VLSRadialCS));
            VLSRadialCS l2d = go.GetComponent <VLSRadialCS>();

            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 CreateRadialCSLight()
        {
            VLSRadialCS l2D = VLSLight.CreateRadialCS();

            Selection.activeGameObject = l2D.gameObject;
        }