Files
BoostBaller/Assets/Scripts/UI/SetPlayerMode.cs
2020-07-27 09:19:57 +02:00

23 lines
543 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SetPlayerMode : MonoBehaviour
{
public int playerMode;
private GameSettings settings;
// Start is called before the first frame update
void Start()
{
this.settings = GameObject.Find("/settings").GetComponent<GameSettings>();
}
void OnMouseDown()
{
this.settings.playerMode = this.playerMode;
SceneManager.LoadScene("main", LoadSceneMode.Single);
}
}