예제 #1
0
 void Start()
 {
     if (pa == null)
     {
         pa = this.GetComponent <PlayAd>();
     }
     if (Advertisement.isSupported)
     {
         Advertisement.Initialize(unityAdGameID);
     }
 }
예제 #2
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else if (instance != this)
     {
         Destroy(gameObject);
         return;
     }
 }