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)
- {
- if (Time.timeScale == 1.0)
- Time.timeScale = 0.0;
- else
- Time.timeScale = 1.0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement