1) Refactor Project Architecture 2) Add Assets 3) Change Prefabs 4) Change Input Method (now using PlayerInput Component) 5) Add Weapon Prefab & Simple Script with Shooting() 6) Add Menu Scene & two btn functions: QuitGame() & PlayGame()
15 lines
282 B
C#
15 lines
282 B
C#
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class MenuGroup : MonoBehaviour
|
|
{
|
|
public void PlayGame()
|
|
{
|
|
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
|
|
}
|
|
public void QuitGame()
|
|
{
|
|
Application.Quit();
|
|
}
|
|
}
|