Esempio n. 1
0
 // Token: 0x060002AA RID: 682 RVA: 0x00011AD8 File Offset: 0x0000FCD8
 public void OnClick()
 {
     OnClickLoadSomething.ResourceTypeOption resourceTypeToLoad = this.ResourceTypeToLoad;
     if (resourceTypeToLoad == OnClickLoadSomething.ResourceTypeOption.Scene)
     {
         SceneManager.LoadScene(this.ResourceToLoad);
         return;
     }
     if (resourceTypeToLoad != OnClickLoadSomething.ResourceTypeOption.Web)
     {
         return;
     }
     Application.OpenURL(this.ResourceToLoad);
 }
Esempio n. 2
0
 public void OnClick()
 {
     OnClickLoadSomething.ResourceTypeOption resourceTypeToLoad = this.ResourceTypeToLoad;
     if (resourceTypeToLoad != OnClickLoadSomething.ResourceTypeOption.Scene)
     {
         if (resourceTypeToLoad == OnClickLoadSomething.ResourceTypeOption.Web)
         {
             Application.OpenURL(this.ResourceToLoad);
         }
     }
     else
     {
         Application.LoadLevel(this.ResourceToLoad);
     }
 }