コード例 #1
0
 void OnBecameInvisible()
 {
     //When it falls of the screen, increase score and destroy the game object.
     GameLevel.DodgedShard();
     Destroy(this.gameObject);
 }