Example #1
0
 void TriggerEnter( CollisionNotify.CollisionInfo info )
 {
     if (info.other.CompareTag("AnimationTrigger") && animation != null) {
         animation.Rewind();
         if (!animation.isPlaying) {
             animation.Play();
         }
     }
 }
Example #2
0
 void TriggerExit( CollisionNotify.CollisionInfo info )
 {
     if (info.other.CompareTag("SlideShowTrigger")) {
         if (--touchCount == 0) {
             lodManager.MaybeStopSlideShow(this);
         }
     }
 }
Example #3
0
    void TriggerEnter( CollisionNotify.CollisionInfo info )
    {
        if (!enabled) return;

        if (info.other.CompareTag("SlideShowTrigger")) {
            touchCount ++;
            lodManager.MaybeStartSlideShow(this);
        }
    }