public void ChangeToolColor(int colorIdx) { ToolContent tc = null; switch (CurToolType) { case EColorinToolType.ePencil: tc = PencilTool.contents[colorIdx].GetComponent <ToolContent>(); break; case EColorinToolType.eWaterColor: tc = WaterColorTool.contents[colorIdx].GetComponent <ToolContent>(); break; case EColorinToolType.ePaintingCan: tc = PaintingCanTool.contents[colorIdx].GetComponent <ToolContent>(); break; } GameManager.uiEvents.ToolContentClickEvent(tc); ToolBtnList[(int)CurToolType].ChangeColor(tc.gradientColor.Evaluate(0)); }
public void ChangeStamp(int stampIdx) { ToolContent tc = StampTool.contents[stampIdx].GetComponent <ToolContent>(); GameManager.uiEvents.ToolContentClickEvent(tc); }
public void Set(ToolContent content) { Bg.color = content.gradientColor.Evaluate(0); }
public void ToolContent_Ctor() { var actual = new ToolContent(); Assert.NotNull(actual); }