public static MoreAppsMaster Init(string xmlURL) { GameObject go = new GameObject(); MoreAppsMaster master = go.AddComponent <MoreAppsMaster>(); master.url = xmlURL; master.gameObject.name = "MoreApps"; return(master); }
public static void SimpleShow(string xmlURL) { if (MoreAppsMaster.Instance == null) { GameObject go = new GameObject(); MoreAppsMaster master = go.AddComponent <MoreAppsMaster>(); master.url = xmlURL; master.gameObject.name = "MoreApps"; master.showAfterLoad = true; MoreAppsMaster.Instance = master; } else { MoreAppsMaster.Instance.Show(); } }
void Start() { moreAppsScreen = MoreAppsMaster.Init("http://bartoszswiety.com/MoreApps.xml"); }
public void ShowMoreApps() { MoreAppsMaster.SimpleShow("http://bartoszswiety.com/MoreApps.xml"); //MoreAppsScreen.Show (); }