This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//From: http://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/creating-a-scene-menu | |
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
public class ClickToLoadAsync : MonoBehaviour { | |
//The slider that is going to be affected | |
public Slider loadingBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class LoadAdditive : MonoBehaviour { | |
public void LoadAddOnClick(int level) | |
{ | |
Application.LoadLevelAdditive(level); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.Advertisements; | |
public class AdManager : MonoBehaviour | |
{ | |
//Important: Change the gameID to your game's | |
//id in the unityads.unity3d.com dashboard | |
[SerializeField] string gameID = "33675"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.Advertisements; | |
public class SimpleAds : MonoBehaviour | |
{ | |
//Change to your gameID code in | |
//unityads.unity3d.com | |
string gameID = "33675"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class DontDestroy : MonoBehaviour { | |
// Use this for initialization | |
void Awake () { | |
DontDestroyOnLoad(gameObject); | |
NewerOlder