示例#1
0
        private ScoringCandy CreateScoringCandy(string textureName, int scoreValue)
        {
            ScoringCandy newCandy = new ScoringCandy();

            newCandy.TextureReference = textureName;
            if (scoreValue != 0)
            {
                newCandy.ScoreValue = scoreValue;
            }

            return(newCandy);
        }
        private ScoringCandy CreateScoringCandy(string textureName, int scoreValue)
        {
            ScoringCandy newCandy = new ScoringCandy();
            newCandy.TextureReference = textureName;
            if (scoreValue != 0) { newCandy.ScoreValue = scoreValue; }

            return newCandy;
        }