Assets/Scripts/Overworld/Dialogue/Boss.cs (view raw)
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4using UnityEngine.SceneManagement;
5
6public class Boss : NPC
7{
8 [SerializeField] private string bossType = null;
9
10 void onDisable(){
11 SceneManager.LoadScene(++GameMaster.Instance.currentLevel);
12 }
13
14 public override void actionAfterDialogue(){
15 Debug.Log("basik finocchio");
16 GameMaster.Instance.EnterBattle(name, bossType);
17 }
18}