Skip to content

Instantly share code, notes, and snippets.

@SenpaiRar
Created May 1, 2019 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SenpaiRar/9a6f229ac55a190738d529885e3daaa4 to your computer and use it in GitHub Desktop.
Save SenpaiRar/9a6f229ac55a190738d529885e3daaa4 to your computer and use it in GitHub Desktop.
This is the template for all weapons. Every weapon in the game has these stats.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "Weapon_Template", menuName = "Weapons/Template", order = 1)]
public class Weapon_Template : ScriptableObject {
public float Damage;
public float RateOfFire;
public KeyCode key;
public int StartingAmmo;
public AudioClip FireSound;
public AudioClip EmptySound;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment