Exemple #1
0
    IEnumerator SubmitGameEvent()
    {
        yield return(new WaitForEndOfFrame());

        var gameEvent = new IGL.GameEvent
        {
            Properties = new Dictionary <string, string>()
            {
                { "Created", DateTime.UtcNow.ToString() },
                { "Instance", _instance.ToString() }
            }
        };

        MessageDisplay.text = "Sent message without error: " + IGL.Client.ServiceBusWriter.SubmitGameEvent("Echo", 1, gameEvent).ToString() + Environment.NewLine + MessageDisplay.text;
    }
Exemple #2
0
    public void SendEchoMessage()
    {
        var gameEvent = new IGL.GameEvent
        {
            Properties = new Dictionary <string, string>()
            {
                { "Created", DateTime.UtcNow.ToString() },
                { "Instance", _instance.ToString() }
            }
        };

        bool wasSuccessful = IGL.Client.ServiceBusWriter.SubmitGameEvent("Echo", 1, gameEvent);

        MessageDisplay.text = "Sent message without error: " + wasSuccessful.ToString() + Environment.NewLine + MessageDisplay.text;
    }
Exemple #3
0
    public void SendArxMessage()
    {
        var gameEvent = new IGL.GameEvent
        {
            Properties = new Dictionary <string, string>()
            {
                { "Created", DateTime.UtcNow.ToString() },
                { "Instance", _instance.ToString() },
                { "StatViewModel.Name", "Pyramid" },
                { "StatViewModel.Value", UnityEngine.Random.Range(700, 950).ToString() },
            }
        };

        bool wasSuccessful = IGL.Client.ServiceBusWriter.SubmitGameEvent("arxevent", 1, gameEvent);

        MessageDisplay.text = "Sent message without error: " + wasSuccessful.ToString() + Environment.NewLine + MessageDisplay.text;
    }