PBG2H23ABR_PBG2H23AKL_PMC_P.../Plunderblock/Assets/Scripts/ScriptsKevin/DataBullet.cs
2024-06-14 10:35:34 +02:00

21 lines
456 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
[CreateAssetMenu(fileName = "BulletScriptableObject", menuName = "BulletScriptableObject", order = 0)]
public class DataBullet : ScriptableObject
{
public float damage = 10;
public float speed = 5f;
public Vector3 direction = new Vector3();
public int ammo;
public void setDamage(float damage){
this.damage = damage;
}
}