Exemple #1
0
    // Use this for initialization
    void Start()
    {
        libraryMenu = GameObject.FindObjectOfType<LibraryMenu>();
        vkapi = VkApi.VkApiInstance;
        button.onClick.AddListener(
            delegate
            {
                InitializeGroupRequest();

            }
        );
    }
 void Awake()
 {
     vkapi = GetComponent<VkApi> ();
 }
Exemple #3
0
 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();

        };
    }