all repos — RPG @ 9a9528c6bffc34089550b5e8fb4c5a1c4754c8cf

Fully functional 3D turn based role playing game coded in C# and base Unity.

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}