Example #1
0
/// <summary>
/// When entering the state we reset our shoot counter and grab our weapon
/// </summary>
        public override void OnEnterState()
        {
            base.OnEnterState();
            _numberOfShoots   = 0;
            _shooting         = true;
            _weaponAim        = _characterHandleWeapon.CurrentWeapon.gameObject.MMGetComponentNoAlloc <WeaponAim>();
            _projectileWeapon = _characterHandleWeapon.CurrentWeapon.gameObject.MMGetComponentNoAlloc <ProjectileWeapon>();
        }