//====================================================================== void Awake() { // Check external references Assert.IsNotNull(sel); // Cache components _agg = GetComponent <Aggressive> (); _mov = sel.mov; }
//====================================================================== void Awake() { // Check external references Assert.IsNotNull(sel); // Cache components _trans = transform; _agg = GetComponent <Aggressive> (); _mov = sel.mov; // Auto attack integrity Assert.IsTrue( autoChaseRange + _agg.weapon.distance > autoAttackRange ); }