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