16 lines
249 B
C#
16 lines
249 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class DragonHealth : MonoBehaviour
|
|
{
|
|
private int health = 100;
|
|
|
|
void Update()
|
|
{
|
|
if (health <= 100)
|
|
{
|
|
Debug.Log("Dragon dead :(");
|
|
}
|
|
}
|
|
}
|