private void ChangeEvent() { switch (clickType) { case ClickEventType.None: break; case ClickEventType.Tool: UIEventManager.ToolClickEvent(tool); break; case ClickEventType.Undo: UIEventManager.UndoEvent(); break; case ClickEventType.Redo: UIEventManager.RedoEvent(); break; case ClickEventType.ChangeSize: UIEventManager.ChangeSizeEvent(tool); break; case ClickEventType.ResetZoom: UIEventManager.ResetZoom(); break; case ClickEventType.Delete: UIEventManager.Delete(); break; case ClickEventType.TakePhote: UIEventManager.TakePhoto(); break; case ClickEventType.LeaveMsg: UIEventManager.LeaveMsg(); break; case ClickEventType.ReviewMsg: UIEventManager.ReviewMsg(); break; case ClickEventType.ChangeColor: UIEventManager.ChangColorEvent(spr); break; case ClickEventType.ChangeBg: UIEventManager.ChangBg(tool); break; case ClickEventType.ChangAlpha: slider.onValueChanged.RemoveAllListeners(); if (slider != null) { slider.onValueChanged.AddListener(OnVauluChanged); } break; default: break; } }