Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="c"></param>
 void OnTriggerEnter(Collider c)
 {
     if (c.gameObject.GetComponent <bl_GalleryItem>() != null)
     {
         bl_GalleryItem gi = c.gameObject.GetComponent <bl_GalleryItem>();
         if (!gi.OnCenter)
         {
             gi.OnCenter = true;
             gi.CenterEvent(true);
         }
     }
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="c"></param>
 void OnTriggerExit(Collider c)
 {
     if (c.gameObject.GetComponent <bl_GalleryItem>() != null)
     {
         bl_GalleryItem gi = c.gameObject.GetComponent <bl_GalleryItem>();
         if (gi.OnCenter)
         {
             gi.OnCenter = false;
             gi.CenterEvent(false);
         }
     }
 }