Beispiel #1
0
        private async Task MoveObject(object obj)
        {
            VisualObject visualObject = await this.StateManager.GetStateAsync <VisualObject>(StatePropertyName);

            //visualObject.Move(true);

            if (client.BoolVariation("rotate-object-flag", user, false))
            {
                visualObject.Move(true);
            }
            else
            {
                visualObject.Move(false);
            }

            await this.StateManager.SetStateAsync <VisualObject>(StatePropertyName, visualObject);

            this.jsonString = visualObject.ToJson();

            return;
        }
Beispiel #2
0
        private async Task MoveObject(object obj)
        {
            VisualObject visualObject = await this.StateManager.GetStateAsync <VisualObject>(StatePropertyName);

            //alternate which lines are commented out
            //then do an upgrade to cause the
            //visual objects to start rotating

            visualObject.Move(false);
            //visualObject.Move(true);

            await this.StateManager.SetStateAsync <VisualObject>(StatePropertyName, visualObject);

            this.jsonString = visualObject.ToJson();

            return;
        }