You are on page 1of 3

using UnityEngine;

using UnityEngine.SceneManagement;

public class MainMenu : MonoBehaviour


{
public void PlayGame()
{
// Load the scene for your game (e.g., "Gameplay" scene)
SceneManager.LoadScene("Gameplay");
}

public void Quit()


{
Debug.Log("Quitting the game!");
Application.Quit();
}

public void Donate()


{
Debug.Log("Redirecting to donation page...");
Application.OpenURL("YOUR DONATION PAGE URL");
}

public void VisitSite()


{
Application.OpenURL("YOUR WEBSITE URL");
}

using UnityEngine;
using UnityEngine.SceneManagement;

public class MainMenu : MonoBehaviour


{
public void PlayGame()
{
// Load the scene for your game (e.g., "Gameplay" scene)
SceneManager.LoadScene("Gameplay");
}

public void Quit()


{
Debug.Log("Quitting the game!");
Application.Quit();
}

public void Donate()


{
Debug.Log("Redirecting to donation page...");
Application.OpenURL("YOUR DONATION PAGE URL");
}

public void VisitSite()


{
Application.OpenURL("YOUR WEBSITE URL");
}

using UnityEngine;
using UnityEngine.SceneManagement;

public class MainMenu : MonoBehaviour


{
public void PlayGame()
{
// Load the scene for your game (e.g., "Gameplay" scene)
SceneManager.LoadScene("Gameplay");
}

public void Quit()


{
Debug.Log("Quitting the game!");
Application.Quit();
}

public void Donate()


{
Debug.Log("Redirecting to donation page...");
Application.OpenURL("YOUR DONATION PAGE URL");
}

public void VisitSite()


{
Application.OpenURL("YOUR WEBSITE URL");
}

using UnityEngine;
using UnityEngine.SceneManagement;

public class MainMenu : MonoBehaviour


{
public void PlayGame()
{
// Load the scene for your game (e.g., "Gameplay" scene)
SceneManager.LoadScene("Gameplay");
}

public void Quit()


{
Debug.Log("Quitting the game!");
Application.Quit();
}

public void Donate()


{
Debug.Log("Redirecting to donation page...");
Application.OpenURL("YOUR DONATION PAGE URL");
}

public void VisitSite()


{
Application.OpenURL("YOUR WEBSITE URL");
}

using UnityEngine;
using UnityEngine.SceneManagement;
public class MainMenu : MonoBehaviour
{
public void PlayGame()
{
// Load the scene for your game (e.g., "Gameplay" scene)
SceneManager.LoadScene("Gameplay");
}

public void Quit()


{
Debug.Log("Quitting the game!");
Application.Quit();
}

public void Donate()


{
Debug.Log("Redirecting to donation page...");
Application.OpenURL("YOUR DONATION PAGE URL");
}

public void VisitSite()


{
Application.OpenURL("YOUR WEBSITE URL");
}
213212

You might also like