// Use this for initialization void Start() { libraryMenu = GameObject.FindObjectOfType<LibraryMenu>(); vkapi = VkApi.VkApiInstance; button.onClick.AddListener( delegate { InitializeGroupRequest(); } ); }
void Awake() { vkapi = GetComponent<VkApi> (); }
void Awake() { DontDestroyOnLoad(transform.gameObject); if (VkApiInstance == null) VkApiInstance = this; if(downloader==null) downloader = GetComponent<Downloader> (); vsetts=GetComponent<VkSettings>(); }
// Use this for initialization void Start() { vkapi=VkApi.VkApiInstance; vkapi.LoggedIn+=()=> { startWorkingWithVk(); }; }