Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Unity3D Dersleri - 19.06.2018 https://www.youtube.com/Unity3DDersleri \\
- // Discord: https://discord.gg/2e8ANba \\
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class UIMain : MonoBehaviour {
- [Header("UIPages")]
- public GameObject settingsScreen;
- public GameObject creditsScreen;
- public GameObject mainScreen;
- public void StartGame()
- {
- //Oyunu başlatacak kısım.
- Application.LoadLevel("levelİsmi");
- }
- public void Settings()
- {
- mainScreen.SetActive(false);
- settingsScreen.SetActive(true);
- }
- public void set2Menu()
- {
- mainScreen.SetActive(true);
- settingsScreen.SetActive(false);
- }
- public void Credits()
- {
- mainScreen.SetActive(false);
- creditsScreen.SetActive(true);
- }
- public void cre2Menu()
- {
- mainScreen.SetActive(true);
- creditsScreen.SetActive(false);
- }
- public void Exit()
- {
- Application.Quit();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement