示例#1
0
 private void OnTriggerExit(Collider other)
 {
     if (this.m_Trigger == other.GetComponent <MotionTrigger>())
     {
         this.m_Trigger = null;
     }
 }
示例#2
0
        private void OnTriggerEnter(Collider other)
        {
            MotionTrigger trigger = other.GetComponent <MotionTrigger>();

            if (StartType == StartType.Automatic && trigger != null && (trigger.triggerName == this.m_TriggerName || trigger is SwimTrigger))
            {
                this.m_Trigger = trigger;
            }
        }