public void SetCameraState(WeaponActions Actions) { switch (Actions) { case WeaponActions.Idle: SetCameraState("Mounted"); break; case WeaponActions.AimRight: SetCameraState("RiderAimRight"); break; case WeaponActions.AimLeft: SetCameraState("RiderAimLeft"); break; default: break; } }
///────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── /// <summary> /// Updates the Weapon Action on this script an on the animator /// </summary> public virtual void SetAction(WeaponActions action) { _weaponAction = action; _anim.SetInteger(Hash_WeaponAction, (int)action); OnWeaponAction.Invoke(_weaponAction); }