Files
FueraDeEscala/Assets/Game Kit Controller/Scripts/Weapons/weaponAmmoUsingPlayerStat.cs

17 lines
395 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class weaponAmmoUsingPlayerStat : MonoBehaviour
{
public playerStatsSystem mainPlayerStatsSystem;
public string statToUseName;
public float amountToUsePerShoot;
public void useWeaponAmmo ()
{
mainPlayerStatsSystem.usePlayerStat (statToUseName, amountToUsePerShoot);
}
}