예제 #1
0
    static public int createSingleEvent(string name, Vector3 position, ExpandoObject extraInfo = null)
    {
        TelemetryNode newSingleEvent = new TelemetryNode(
            TelemetryNodeType.SingleEvent,
            name,
            position,
            extraInfo
            );

        return(TelemetryCore.addNode(newSingleEvent));
    }
예제 #2
0
    static public int createChainEvent(string name, Vector3 position, int previousEventId = -1, ExpandoObject extraInfo = null)
    {
        TelemetryNode newChainEvent = new TelemetryNode(
            TelemetryNodeType.ChainEvent,
            name,
            position,
            extraInfo
            );

        if (previousEventId != -1)
        {
            newChainEvent.setLink(previousEventId);
        }

        // Telemetry: Save the event node ID
        return(TelemetryCore.addNode(newChainEvent));
    }
예제 #3
0
    void track()
    {
        dynamic additionalMetaData = new ExpandoObject();

        additionalMetaData.looking = transform.lossyScale.x > 0 ? "right" : "left";


        TelemetryNode playerPosition = new TelemetryNode(
            TelemetryNodeType.Atomic,
            "Player Position",
            transform.position,
            additionalMetaData
            );

        if (lastPositionId != -1)
        {
            playerPosition.setLink(lastPositionId);
        }

        lastPositionId = TelemetryCore.addNode(playerPosition);
    }