24 lines
523 B
C#
24 lines
523 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class EnemyStats : MonoBehaviour
|
|
{
|
|
public Enemy enemy;
|
|
public float health = 0;
|
|
public float speed = 0;
|
|
|
|
private void Start() {
|
|
health = enemy.currentHealth;
|
|
speed = enemy.currentSpeed;
|
|
}
|
|
|
|
//Für Später
|
|
/* private void OnCollisionEnter2D(Collision2D other) {
|
|
if (other.gameObject.CompareTag("Sword") || other.gameObject.CompareTag("Bullet")){
|
|
|
|
}
|
|
} */
|
|
}
|