Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 ///──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 /// <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);
 }