void Start() { //if (!wander) wander = this.GetComponent<WanderScript>(); if (!damageCounterManager) { damageCounterManager = GameObject.FindObjectOfType <DamageCounterManager>(); } if (!healthBarManager) { healthBarManager = GameObject.FindObjectOfType <HealthBarManager>(); } if (!movement) { movement = GetComponent <WalkyWalkyScript>(); } spawnPoint = transform.position; spawnRotation = transform.rotation; if (healthBarManager && !GetComponent <RaidBossController>()) { healthBar = healthBarManager.Add(this); } if (EquipmentStats == null) { EquipmentStats = new EquipmentStats(); } if (Stats == null) { Stats = new Skills(); } }
void Start() { //if (!wander) wander = this.GetComponent<WanderScript>(); if (!damageCounterManager) { this.damageCounterManager = GameObject.FindObjectOfType <DamageCounterManager>(); } if (!healthBarManager) { this.healthBarManager = GameObject.FindObjectOfType <HealthBarManager>(); } if (!walker) { this.walker = this.GetComponent <WalkyWalkyScript>(); } this.spawnPoint = this.transform.position; this.spawnRotation = this.transform.rotation; if (healthBarManager && !this.GetComponent <RaidBossController>()) { healthBarManager.Add(this); } if (EquipmentStats == null) { EquipmentStats = new EquipmentStats(); } if (Stats == null) { Stats = new Skills(); } this.rbody = GetComponent <Rigidbody>(); this.agent = GetComponent <NavMeshAgent>(); }