Beispiel #1
0
    void Start()
    {
        instance     = FindObjectOfType <GameManager>();
        admodManager = FindObjectOfType <AdmodManager>();

        admodManager.ShowBanner();
    }
Beispiel #2
0
 void Awake()
 {
     instance     = FindObjectOfType <GameManager>();
     admodManager = FindObjectOfType <AdmodManager>();
     if (instance)
     {
         GameDifficulty = instance.Difficulty;
     }
 }
Beispiel #3
0
    void Awake()
    {
        MobileAds.Initialize(appID);

        if (ins == null)
        {
            ins = this;
            DontDestroyOnLoad(gameObject);
        }
        else if (ins != this)
        {
            Destroy(gameObject);
        }
    }