LaunchPacket.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
    public string ToString()
    {
        string holder = "";

        holder += "type: " + type;
        holder += " Start Pos: " + launchPosition;
        holder += " Destination: " + launchDestination;
        holder += " Game Time: " + localGameTime;

        return holder;
    }

Usage Example

コード例 #1
0
 /*
 void FixedUpdate ()
 {
     if (send) {
         SendLaunchData();
     }
 }
  */
 public void SendLaunchOnRequest(LaunchPacket message)
 {
     Debug.Log (GameManager.Instance.ClientName + " sent transform on request");
     Debug.Log(message.ToString());
     GameManager.Instance.SendLaunchMessage(message);
 }