// Start is called before the first frame update void Awake() { if (instance == null || instance.Equals(null)) { instance = this; health = maxHealth; } else { Destroy(this); } }