Exemplo n.º 1
0
 private void TurnCollisionIndicatorOff()
 {
     foreach (SpriteRenderer RendererRef in wheatSpriteRenderers)
     {
         //Includes Alpha fadein to 1
         RendererRef.DOColor(Color.white, CollisionIndicatorOffTime);
     }
 }
Exemplo n.º 2
0
 private void TurnCollisionIndicatorOn()
 {
     foreach (SpriteRenderer RendererRef in wheatSpriteRenderers)
     {
         Color collisionColor = new Color(0.5f, 0.5f, 0.5f);
         RendererRef.DOColor(collisionColor, CollisionIndicatorOnTime);
         Utils.FadableExt.DOFade(RendererRef, 0.5f, CollisionIndicatorOnTime);
     }
 }