Пример #1
0
 public static void ChangeColor(this Saber saber, Color color)
 {
     if (saber.isActiveAndEnabled)
     {
         saber.StartCoroutine(ChangeColorCoroutine(saber, color));
     }
 }
Пример #2
0
 /// <summary>
 /// Changes the color of a saber instantly.
 /// </summary>
 /// <param name="saber">The saber to change the color of.</param>
 /// <param name="color">The color to change the saber to.</param>
 public static void ChangeColorInstant(this Saber saber, Color color)
 {
     if (saber.isActiveAndEnabled)
     {
         saber.StartCoroutine(Utilities.ChangeColorCoroutine(saber, color, 0));
     }
 }