MOD: Enemy AI
MOD: Player Shooting MOD: Damage Player and Enemy
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "Weapon", menuName = "Weapon/Weapon", order = 0)]
|
||||
public class Weapon : ScriptableObject
|
||||
{
|
||||
[SerializeField]
|
||||
private float damage = 20f;
|
||||
[SerializeField]
|
||||
private float fireRate = 0;
|
||||
|
||||
public float getDamage(){
|
||||
return damage;
|
||||
}
|
||||
|
||||
public float getFireRate(){
|
||||
return fireRate;
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c14c23aaaf8bbfd4d8320990568224eb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user