private void InitializeFaceTransState() { this.sideState = CardSideState.TRANSITIONING_START; this.PlayAnimation(0); this.cardLabel.HideLabel(); }
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); }
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"); } }