示例#1
0
        private void InitializeFaceTransState()
        {
            this.sideState = CardSideState.TRANSITIONING_START;

            this.PlayAnimation(0);

            this.cardLabel.HideLabel();
        }
示例#2
0
        private void InitializeTransitioningEndState()
        {
            if (this.isFliped)
            {
                this.ObjectSprite.Texture = this.Card2DFactory.GetTextureById(this.cardName);
            }
            else
            {
                this.ObjectSprite.Texture = this.Card2DFactory.GetTextureById("backCardTexture");
            }

            this.sideState = CardSideState.TRANSITIONING_END;

            this.PlayAnimation(1);
        }
示例#3
0
        private void InitializeFaceState()
        {
            //this.isFliped = true;
            //this.ObjectSprite.Texture = this.Card2DFactory.GetTextureById(this.cardName);

            this.sideState = CardSideState.FACE;

            if (this.IsFliped)
            {
                this.ObjectSprite.Texture = this.Card2DFactory.GetTextureById(this.cardName);

                this.cardLabel.ShowLabel();
            }
            else
            {
                this.ObjectSprite.Texture = this.Card2DFactory.GetTextureById("backCardTexture");
            }
        }