예제 #1
0
 void Set(StrokeGraphic strokeGraphic, Stroke[] strokes)
 {
     if (strokeGraphic != null)
     {
         strokeGraphic.SetStrokes(strokes);
     }
 }
예제 #2
0
 void Clear(StrokeGraphic strokeGraphic)
 {
     if (strokeGraphic != null)
     {
         strokeGraphic.ClearStrokes();
     }
 }
예제 #3
0
 void Set(StrokeGraphic strokeGraphic, Glyph glyph)
 {
     if (strokeGraphic != null)
     {
         strokeGraphic.SetStrokes(glyph);
     }
 }
예제 #4
0
    IEnumerator FadeOut(StrokeGraphic strokeGraphic, Color targetColor)
    {
        targetColor.a = 0f;
        if (strokeGraphic != null)
        {
            strokeGraphic.CrossFadeColor(targetColor, fadeOutDuration, true, true);
        }
        yield return(new WaitForSeconds(fadeOutDuration * 1.5f));//The order of crossfade finalization and the end of this couroutine is inconsistent if the duration is the same


        Clear(strokeGraphic);
        if (strokeGraphic != null)
        {
            strokeGraphic.canvasRenderer.SetColor(Color.white);
        }
    }
예제 #5
0
 bool IsClear(StrokeGraphic strokeGraphic)
 {
     return(strokeGraphic == null || strokeGraphic.IsClear);
 }