Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnCollisionEnter2D(Collision2D other)
- {
- if (other.gameObject.tag == "Platform")
- {
- coinlights ();
- }
- }
- void coinlights()
- {
- lightnum++;
- for (int i = 0; i < 5; i++) {
- Debug.Log ("test");
- if (counter >= 0.3f)
- {
- Debug.Log("first 4");
- lights [i].SetActive (true);
- counter = 0;
- coinlights ();
- }
- }
- if (lightnum == 4)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement