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 :("); } } }