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); }
static void CreateRadialCSLight() { VLSRadialCS l2D = VLSLight.CreateRadialCS(); Selection.activeGameObject = l2D.gameObject; }