Example #1
0
 private void Update()
 {
     if (deleteOffScreen)
     {
         //check if behind camera
         if (transform.position.z < GameMaster.instance.cam.transform.position.z)
         {
             Data.Missed(this.gameObject);
             DestroySelf();
         }
     }
 }