public void Start() { GetAdaptor getAdapter = RESTConnectTwo.Instance; linkName = getText.get_link(); getAdapter.get_total_item(totalItems, linkName); Scene newscene = SceneManager.GetActiveScene(); string scenename = newscene.name; if (scenename == "MainScene") { Invoke("get_items_details", 2); } if (scenename == "OrderListScene") { checkOrderList_and_Show(orders); } }