public override void ServerInit() { base.ServerInit(); Brain = GetComponent <BaseAIBrain <HumanNPCNew> >(); if (!base.isClient) { AIThinkManager.Add(this); } }
public override void ServerInit() { base.ServerInit(); _brain = GetComponent <BaseAIBrain <HumanNPC> >(); if (!base.isClient) { AIThinkManager.Add(this); Invoke(EnableNavAgent, 0.25f); spawnPos = base.transform.position; } }
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); }