Ejemplo n.º 1
0
        public void TryCommonInit()
        {
            if (_isCommonInit)
            {
                return;
            }

            _senderCollection       = Resources.Load <SenderCollection>("SenderCollection");
            _tweetSpritesCollection = Resources.Load <TweetSpritesCollection>("TweetSpritesCollection");

            CommentButton.onClick.AddListener(OnCommentsClick);
            LikeButton.OnPressed  += OnLikesPressed;
            LikeButton.OnReleased += OnLikesReleased;
            LikeButton.onClick.AddListener(OnLikesClick);
            RetweetButton.OnPressed  += OnRetweetsPressed;
            RetweetButton.OnReleased += OnRetweetsReleased;
            RetweetButton.onClick.AddListener(OnRetweetsClick);
            TweetImageButton.onClick.AddListener(OnImageClick);

            _isCommonInit = true;
        }
Ejemplo n.º 2
0
 void Awake()
 {
     Close();
     _tweetSpritesCollection = Resources.Load <TweetSpritesCollection>("TweetSpritesCollection");
 }