Esempio n. 1
0
    public override void hiddenViewEnd()
    {
        mRetainCount--;

        base.hiddenViewEnd();
        if (WGGameUIView.Instance.leftHandle.activeInHierarchy)
        {
            tsContent.gameObject.GetComponent <Animation>().Play("CollectionFly");
            //tsContent.gameObject.animation.Play();
        }
        else
        {
            //tsContent.gameObject.animation.name="CollectionFly2";
            tsContent.gameObject.GetComponent <Animation>().Play("CollectionFly2");
        }

        mnIvokeBlock.InvokeBlock(1, () => {
            bOneShowing = false;
            tsContent.gameObject.SetActive(false);
            tsContent.transform.localPosition = new Vector3(-184.8f, -339.5f, 0);
            InvokeBlock(2, () => {
                if (_Self.mRetainCount <= 0)
                {
                    _Self = null;
                    Destroy(gameObject);
                }
            });
        });
    }
Esempio n. 2
0
 static WGTipForCollectionView CreateCollectionView()
 {
     if (mObj == null)
     {
         mObj = Resources.Load("pbWGTipForCollectionView");
     }
     if (mObj != null)
     {
         GameObject             go = Instantiate(mObj) as GameObject;
         WGTipForCollectionView tv = go.GetComponent <WGTipForCollectionView>();
         return(tv);
     }
     return(null);
 }