MOD: Enemy AI
MOD: Player Shooting MOD: Damage Player and Enemy
This commit is contained in:
@@ -5,14 +5,22 @@ 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 float currentHealth = 100f;
|
||||
[SerializeField]
|
||||
private float currentSpeed = 2f;
|
||||
[SerializeField]
|
||||
private float damage = 20f;
|
||||
|
||||
private void Start() {
|
||||
currentHealth = health;
|
||||
public float getCurrentHealth(){
|
||||
return currentHealth;
|
||||
}
|
||||
|
||||
public float getCurrentSpeed(){
|
||||
return currentSpeed;
|
||||
}
|
||||
|
||||
public float getDamage(){
|
||||
return damage;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user