Пример #1
0
        private void HashtagFollowing()
        {
            var follower   = new TagFollower();
            var vm_account = ((Application.Current.Windows[0] as MainWindow).accountsArea.Content as AccountsView).AccountsView_ListView.SelectedItem as VM_Account;
            var db         = new InstagramDataContext();
            var account    = db.InstagramAccounts.First(m => m.AccountName == vm_account.Title);

            follower.StartFollow(targetInput.Text, int.Parse(followCountInput.Text), account);
        }
Пример #2
0
        public static void TagObject(GameObject gameObject, Color color)
        {
            Renderer[] allRenderers = gameObject.GetComponentsInChildren <Renderer>();

            if (allRenderers.Length == 0)
            {
                Debug.LogWarning("trying to tag " + gameObject.name + " but it has no child renderers");
                return;
            }

            List <TagFollower> followersPerObject = new List <TagFollower>();

            for (int i = 0; i < allRenderers.Length; i++)
            {
                TagFollower follower = GetAvailableTagFollower();
                follower.StartFollow(allRenderers[i], allRenderers[i].GetComponent <MeshFilter>(), color);
                followersPerObject.Add(follower);
            }

            tagged2Followers.Add(gameObject, followersPerObject);
        }