UnityEngine.AI.NavMeshAgent.SetAreaCost C# (CSharp) Method

SetAreaCost() private method

private SetAreaCost ( int areaIndex, float areaCost ) : void
areaIndex int
areaCost float
return void
        public extern void SetAreaCost(int areaIndex, float areaCost);
        /// <summary>

Usage Example

Example #1
0
 // Use this for initialization
 protected virtual void Start()
 {
     Icon = GameObject.FindGameObjectWithTag("IconLine");
     this.statsvalues.team = "Caos"; // Gitanesco por favor luego quitar
     LifeBar               = GameObject.FindGameObjectWithTag("LifeBar").GetComponent <Image>();
     Lifetext              = GameObject.FindGameObjectWithTag("LifeText").GetComponent <Text>();
     navagent              = this.GetComponent <UnityEngine.AI.NavMeshAgent>();
     navagent.speed        = this.statsvalues.speed / 70;
     LifeBar.fillAmount    = this.statsvalues.life / this.statsvalues.totallife;
     Lifetext.text         = (int)this.statsvalues.life + " / " + (int)this.statsvalues.totallife + "                      +" + this.statsvalues.regen;
     this.colliderchampion = this.GetComponent <Collider>();
     navagent.SetAreaCost(4, 5);
     line          = this.Icon.GetComponent <LineRenderer>();
     MinimapCamera = GameObject.FindGameObjectWithTag("MinimapCamera").GetComponent <Camera>();
 }
All Usage Examples Of UnityEngine.AI.NavMeshAgent::SetAreaCost