all repos — RPG @ 1be4b62bb8e62efb733d4a69a1b1690c1999981f

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;
 9
10    void onDisable(){
11        SceneManager.LoadScene(++GameMaster.Instance.currentLevel);
12    }
13}