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); }
static void CreateRadialLight() { VLSRadial l2D = VLSLight.CreateRadial(); Selection.activeGameObject = l2D.gameObject; }