Browse Source

Fixed confetti

master
Joshua Reason 9 years ago
parent
commit
5c35060303
3 changed files with 6 additions and 6 deletions
  1. BIN
      playable/Assets/Lachlan_jump_work.unity
  2. BIN
      playable/Assets/Prefabs/Confetti.prefab
  3. +6
    -6
      playable/Assets/Scripts/confettiController.cs

BIN
playable/Assets/Lachlan_jump_work.unity View File


BIN
playable/Assets/Prefabs/Confetti.prefab View File


+ 6
- 6
playable/Assets/Scripts/confettiController.cs View File

@ -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;
// }
//}
} }

Loading…
Cancel
Save