public override void OnDead() { GoyeCombat1 goye = transform.parent.GetComponent <GoyeCombat1>(); Destroy(goye.transform.Find("Combat Field").gameObject); Camera.main.GetComponent <BasicFollower>().RestoreCameraFollowing(); goye.GetComponent <EnemySaveData>().Save(false); }
private void OnEnable() { if (goyeCombat.GetComponent <EnemySaveData>().IsAlive()) { combatTrigger.enabled = true; combatTrigger.ResetTrigger(); } }