This commit is contained in:
CortexCore
2023-10-29 15:27:13 +08:00
parent c5f638d9d2
commit c7b6ddbf70
73 changed files with 2158 additions and 494 deletions

View File

@@ -74,7 +74,6 @@ namespace BITFALL.Guns
[SerializeField] private Transform cameraView;
// 引用组件
[Header(Constant.Header.Components)]
[SerializeField] private VFXPlayer vfxPlayer;
[SerializeField] private LocationAdditive locationAdditive;
// 引用预制体
@@ -163,8 +162,6 @@ namespace BITFALL.Guns
base.EntryAsync();
isHolstered = false;
var animName = animator.animator.GetCurrentAnimatorStateInfo(0).shortNameHash;
animator.animator.Play(animName,-1,0);
inputActionGroup.allowInput.AddElement(this);
expectFiring.Reset();
Enabled = true;
@@ -260,7 +257,7 @@ namespace BITFALL.Guns
}
//播放射击动画
animator.Play(BITConstant.Player.Fire);
UnityEntity.Invoke(Constant.Animation.Play, BITConstant.Player.Fire);
//调用BulletManager生成子弹
var _transform = transform;
@@ -275,9 +272,6 @@ namespace BITFALL.Guns
InitialForce = _gun.InitialBulletForce,
});
//播放枪口MuzzleFlash
vfxPlayer.Execute();
//开火模式逻辑判断
switch (assetable.FireMode)
{