Main Menu Script

Main Menu Script

www.hd-games.blog.ir - اگر مشکلی داشتید بیاید وبلاگم تو قسمت پرسش و پاسخ تو نظرتون مشکلتون رو بگید.

// creator : hadihd

// site : www.hd-games.blog.ir - www.gamemaker8.blog.ir

// telegram : @hdgames

// instagram : @hdgames_company

// aparat : @hadi_dodangeh


using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using UnityEngine.SceneManagement;


public class MainMenu : MonoBehaviour {


public void StartGame () {

SceneManager.LoadScene ("level1");

}

public void Levels (GameObject obj) {

//SceneManager.LoadScene ("levels");

obj.SetActive (true);

}

public void AboutUs (GameObject obj) {

//SceneManager.LoadScene ("Aboutus");

obj.SetActive (true);

}

public void Exit () {

Application.Quit ();

}


public void LevelLoader (string levelname) {

SceneManager.LoadScene (levelname);

}


public void Back (GameObject obj) {

obj.SetActive (false);

}

}

Report Page