ok…so last time I got to this point I broke my game (lol) now ive remade it and am making the puffs appear but they are not changing colour…i looked at what was shown but it dosnt seem to have any affect…ALSO when i have it in the position that is shown in the videos my blocks stop breaking…
void HandleHits (){
timesHit = timesHit +1;
int maxHits = hitSprites.Length + 1;
if (timesHit >= maxHits){
breakableCount--;
levelManager.BrickDestroyed();
GameObject smokePuff = Instantiate (smoke, transform.position, Quaternion.identity) as GameObject;
smokePuff.particleSystem.startColor = gameObject.GetComponent<SpriteRenderer>().color
Destroy (gameObject);
AudioSource.PlayClipAtPoint (smash,transform.position);
;
} else{
LoadSprites();
}
}
ive tried changing the position of the smoke puff code and this allows the bricks to break again but still no colour change…any ideas…??