This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
PMC_Projekt/ProjektUnity/Assets/Scripts/ScriptableObjects/Enemy/Enemy.cs

19 lines
411 B
C#
Raw Normal View History

2024-09-05 11:46:56 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "Enemy", menuName = "Enemy/Enemy", order = 0)]
public class Enemy : ScriptableObject
{
[HideInInspector]
public float currentHealth = 0;
[SerializeField]
private float health = 100;
public float currentSpeed = 0;
private void Start() {
currentHealth = health;
}
}