Example #1
0
 public override void ServerInit()
 {
     base.ServerInit();
     Brain = GetComponent <BaseAIBrain <HumanNPCNew> >();
     if (!base.isClient)
     {
         AIThinkManager.Add(this);
     }
 }
Example #2
0
 public override void ServerInit()
 {
     base.ServerInit();
     _brain = GetComponent <BaseAIBrain <HumanNPC> >();
     if (!base.isClient)
     {
         AIThinkManager.Add(this);
         Invoke(EnableNavAgent, 0.25f);
         spawnPos = base.transform.position;
     }
 }
Example #3
0
 public override void ServerInit()
 {
     base.ServerInit();
     this._brain = (HumanBrain)((Component)this).GetComponent <HumanBrain>();
     if (this.isClient)
     {
         return;
     }
     AIThinkManager.Add((IThinker)this);
     this.Invoke(new Action(this.EnableNavAgent), 0.25f);
 }