Beispiel #1
0
    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);
    }
Beispiel #2
0
 private void OnEnable()
 {
     if (goyeCombat.GetComponent <EnemySaveData>().IsAlive())
     {
         combatTrigger.enabled = true;
         combatTrigger.ResetTrigger();
     }
 }