Ejemplo n.º 1
0
 void Awake()
 {
     instance = this;
     if (Advertisement.isSupported)
     {
         Advertisement.Initialize("1024877");
     }
     else
     {
         Debug.Log("Platform not supported");
     }
 }
Ejemplo n.º 2
0
    private void Awake()
    {
        DontDestroyOnLoad(this.gameObject);

        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(this.gameObject);
        }
    }