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) { } }
public override void OnModeChange(DrawingTool.ToolModes mode) { //change this button's visibility based on tool mode if (mode == DrawingTool.ToolModes.Pen) { Show(); } else { Hide(); } }
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 }
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); } }
public override void OnModeChange(DrawingTool.ToolModes mode) { //highlight this button only in the correct mode buttonActive = mode == DrawingTool.ToolModes.Eraser; }
//virtual methods for descendant classes public virtual void OnModeChange(DrawingTool.ToolModes mode) { }