Example #1
0
 private void OnEnable()
 {
     this.AddLink();
     if (this.m_AutoUpdatePosition && this.m_LinkInstance.valid)
     {
         NavMeshLink.AddTracking(this);
     }
 }
Example #2
0
 private void OnEnable()
 {
     this.AddLink();
     if (!this.m_AutoUpdatePosition || !((NavMeshLinkInstance) ref this.m_LinkInstance).get_valid())
     {
         return;
     }
     NavMeshLink.AddTracking(this);
 }
Example #3
0
 // Token: 0x0600230E RID: 8974 RVA: 0x000AC522 File Offset: 0x000AA722
 private void SetAutoUpdate(bool value)
 {
     if (this.m_AutoUpdatePosition == value)
     {
         return;
     }
     this.m_AutoUpdatePosition = value;
     if (value)
     {
         NavMeshLink.AddTracking(this);
         return;
     }
     NavMeshLink.RemoveTracking(this);
 }