Example #1
0
    //Returns the values in a string format, to be placed in a Message's Content field, in the following order:

    /*
     *      1. Vector3 of position of this gameObject.
     *      2. Vector3 of eulerAngles of this gameObject's rotation.
     *      3. DateTime of the UtcNow when the message is being sent.
     *      4. State of the input. In this case, it is the state of the player such as "Up_Down" or "Left_Right".
     */
    public string GetUpdateContent( )
    {
        string tmpResult = (CGlobals.Vec3ToString(transform.position) + '\t' + CGlobals.Vec3ToString(transform.localRotation.eulerAngles) + '\t' + GetGlobalTimeString() + '\t' + "Still");

        return(tmpResult);
    }