Ejemplo n.º 1
0
 public MTToggleVisibilityState(MTToggleVisibility action, GameObject target)
     : base(action, target)
 {
     var render = target.GetComponent<Renderer> ();
     if (render) {
         render.enabled = !render.enabled;
     }
 }
Ejemplo n.º 2
0
        public MTToggleVisibilityState(MTToggleVisibility action, GameObject target)
            : base(action, target)
        {
            var render = target.GetComponent <Renderer> ();

            if (render)
            {
                render.enabled = !render.enabled;
            }
        }