Exemplo n.º 1
0
 public override void ServerInit()
 {
     base.ServerInit();
     Brain = GetComponent <BaseAIBrain <HumanNPCNew> >();
     if (!base.isClient)
     {
         AIThinkManager.Add(this);
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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);
 }