Exemplo n.º 1
0
 private void Awake()
 {
     if (Ins == null)
     {
         Ins = this;
         DontDestroyOnLoad(this);
     }
     else if (Ins != this)
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 2
0
 private void OnEnable()
 {
     managerAds = (ManagerAds)target;
 }