void Start() { //get the ame manager script GameMgr = GameManager.Instance; MvtMgr = MovementManager.Instance; AttackMgr = AttackManager.Instance; //default values for the timers: AttackTimer = 0.0f; SearchTimer = 0.0f; ObjPool = EffectObjPool.Instance; if (AttackAllTypes == false) { //if it can not attack all the units AttackMgr.AssignAttackExceptions(AttackExceptions, ref AttackExceptionList); } //if there's a weapon object: if (WeaponObj) { WeaponIdleRotation.eulerAngles = WeaponIdleAngles; } //get the range type ID from the attack manager RangeTypeID = AttackMgr.GetRangeTypeID(RangeType); }
void Start() { //get the ame manager script GameMgr = GameManager.Instance; MvtMgr = MovementManager.Instance; AttackMgr = AttackManager.Instance; //default values for the timers: AttackTimer = 0.0f; SearchTimer = 0.0f; ObjPool = EffectObjPool.Instance; //if there's a weapon object: if (WeaponObj) { WeaponIdleRotation.eulerAngles = WeaponIdleAngles; } //get the range type ID from the attack manager RangeTypeID = AttackMgr.GetRangeTypeID(RangeType); }