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