Exemplo n.º 1
0
 public override void OnModeChange(DrawingTool.ToolModes mode)
 {
     try             //this is here because the mode switches once at load before the colors com back from the web
     {
         normalColor = _parent.specialColorsFromTheInternet[webColorIndex];
         GetComponent <Renderer>().material.color = normalColor;
     } catch (System.Exception e) { }
 }
Exemplo n.º 2
0
 public override void OnModeChange(DrawingTool.ToolModes mode)
 {
     //change this button's visibility based on tool mode
     if (mode == DrawingTool.ToolModes.Pen)
     {
         Show();
     }
     else
     {
         Hide();
     }
 }
Exemplo n.º 3
0
        public override void OnModeChange(DrawingTool.ToolModes mode)
        {
            //change this button's visibility based on tool mode
            if (mode == DrawingTool.ToolModes.Pen)
            {
                Show();
            }
            else
            {
                Hide();
            }

            HideTheChildren();            //hide the children if they are visible on mode change
        }
Exemplo n.º 4
0
 public override void OnModeChange(DrawingTool.ToolModes mode)
 {
     //change visibility based on tool mode
     if (mode == DrawingTool.ToolModes.Pen)
     {
         Show();
         thicknessTrack.gameObject.SetActive(true);
     }
     else
     {
         Hide();
         thicknessTrack.gameObject.SetActive(false);
     }
 }
Exemplo n.º 5
0
 public override void OnModeChange(DrawingTool.ToolModes mode)
 {
     //highlight this button only in the correct mode
     buttonActive = mode == DrawingTool.ToolModes.Eraser;
 }
Exemplo n.º 6
0
 //virtual methods for descendant classes
 public virtual void OnModeChange(DrawingTool.ToolModes mode)
 {
 }