Пример #1
0
    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));
    }
Пример #2
0
    public void ChangeStamp(int stampIdx)
    {
        ToolContent tc = StampTool.contents[stampIdx].GetComponent <ToolContent>();

        GameManager.uiEvents.ToolContentClickEvent(tc);
    }
Пример #3
0
 public void Set(ToolContent content)
 {
     Bg.color = content.gradientColor.Evaluate(0);
 }
Пример #4
0
        public void ToolContent_Ctor()
        {
            var actual = new ToolContent();

            Assert.NotNull(actual);
        }