|
@ -57,12 +57,12 @@ public class confettiController : MonoBehaviour { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void OnCollisionEnter2D(Collision2D col){ |
|
|
|
|
|
if (col.collider.tag == "ground" && Time.time - startTime > 2) { |
|
|
|
|
|
gameObject.GetComponent<BoxCollider2D> ().enabled = false; |
|
|
|
|
|
gameObject.GetComponent<Rigidbody2D> ().isKinematic = true; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//void OnCollisionEnter2D(Collision2D col){
|
|
|
|
|
|
// if (col.collider.tag == "ground" && Time.time - startTime > 2) {
|
|
|
|
|
|
// gameObject.GetComponent<BoxCollider2D> ().enabled = false;
|
|
|
|
|
|
// gameObject.GetComponent<Rigidbody2D> ().isKinematic = true;
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |