private void OnTriggerExit(Collider other) { if (this.m_Trigger == other.GetComponent <MotionTrigger>()) { this.m_Trigger = null; } }
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; } }