Exemple #1
0
 public void ChangeWeapon(Weapon weapon)
 {
     this.weapon        = weapon;
     weaponCount        = weapon.AttackCount;
     status.AttackPower = weapon.Power;
     uiStatus.SetPower(status.AttackPower, 0);
     GameManager.Instance.gameUI.ChangeWeapon(weapon);
     characterHandleWeapon.ChangeWeapon(weapon);
 }
    private void SetCurrentWeapon( )
    {
        characterHandleWeapon.Setup( );

        Weapon weapon = weaponsByType [( int )weaponGlobalVariable.Value];

        characterHandleWeapon.WeaponAttachment = weaponAttachments [( int )currentSkinType];

        character.LinkedInputManager.ForceWeaponMode = true;

        characterHandleWeapon.ChangeWeapon(weapon, weapon.WeaponID);

        characterHandleWeapon.CurrentWeapon.TriggerMode = Weapon.TriggerModes.Auto;
    }