Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnTriggerEnter (info : Collider) {
- Destroy(gameObject);
- ScoreCount.gscore += 1;
- }
- function Update ()
- {
- if(ScoreCount.gscore == 10)
- {
- GetComponent(Timer).enabled = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement