Exemple #1
0
    public void OnDoneChanged(bool withAnim = true)
    {
        if (IsDone)
        {
            strikeLine_.gameObject.SetActive(true);
            checkMark_.gameObject.SetActive(true);
            listMark_.SetColor(Color.clear);
            UpdateStrikeLine();

            if (withAnim)
            {
                strikeLine_.Rate = 0.0f;
                AnimManager.AddAnim(strikeLine_, 1.0f, ParamType.GaugeRate, AnimType.Time, 0.15f);
                checkMark_.Check();
            }
        }
        else
        {
            strikeLine_.gameObject.SetActive(false);
            checkMark_.gameObject.SetActive(false);
            listMark_.SetColor(Color.black);
        }
        SetColor(GetTargetColor());

        tagParent_.OnDoneChanged(this);
    }
Exemple #2
0
 //IColoredObject
 public void SetColor(Color newColor)
 {
     primitive_.SetColor(newColor);
 }