Первый коммит
This commit is contained in:
31
Assets/RealisticCarControllerV3/Scripts/RCC_LevelLoader.cs
Normal file
31
Assets/RealisticCarControllerV3/Scripts/RCC_LevelLoader.cs
Normal file
@ -0,0 +1,31 @@
|
||||
//----------------------------------------------
|
||||
// Realistic Car Controller
|
||||
//
|
||||
// Copyright © 2014 - 2023 BoneCracker Games
|
||||
// https://www.bonecrackergames.com
|
||||
// Buğra Özdoğanlar
|
||||
//
|
||||
//----------------------------------------------
|
||||
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
/// <summary>
|
||||
/// Loads target scene.
|
||||
/// </summary>
|
||||
[AddComponentMenu("BoneCracker Games/Realistic Car Controller/Misc/RCC Level Loader")]
|
||||
public class RCC_LevelLoader : MonoBehaviour {
|
||||
|
||||
/// <summary>
|
||||
/// Loads target scene with string.
|
||||
/// </summary>
|
||||
/// <param name="levelName"></param>
|
||||
public void LoadLevel(string levelName) {
|
||||
|
||||
SceneManager.LoadScene(levelName);
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user