//======================================================================

        void Awake()
        {
            // Check external references
            Assert.IsNotNull(sel);
            // Cache components
            _agg = GetComponent <Aggressive> ();
            _mov = sel.mov;
        }
Exemple #2
0
        //======================================================================

        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
                );
        }