HI,
I have created an array of sprites which will change color on trigger.
Now I am working where I have to read/detect that all spites of the array are triggered and changed.
So another sprite animation/color change function can be played.
Unable to understand that how to detect/know that all sprites are triggered?
Can anyone please suggest me what method i can use here ?
using UnityEngine;
using System.Collections;
public class BG_Sprite_List : MonoBehaviour
{
public GameObject backgrounds;
public backgrounds<GameObject> background ;
void ColorFillEffect()
{
SpriteRenderer = GetComponent<SpriteRenderer> ();
start = new Color (start.r, start.g, start.b, 0.0f);
end = SpriteRenderer.color;
}
void Update ()
{
for (int i = 0; i < background.Count; i++)
{
//another sprite animation/color change function can be played
ColorFillEffect();
}
}
}