Пример #1
0
    private void LogAnnotationData(string timestamp)
    {
        if (isLogging && annotationsStreamWriter != null)
        {
            foreach (GameObject line in GameObject.FindGameObjectsWithTag("Line"))
            {
                LineScript lineScript = line.GetComponent <LineScript>();
                Chart      parent     = line.GetComponentInParent <Chart>();

                annotationsStreamWriter.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}",
                                                  timestamp,
                                                  photonToParticipantDictionary[lineScript.OriginalOwner.ActorNumber],
                                                  photonToParticipantDictionary[lineScript.photonView.OwnerActorNr],
                                                  lineScript.GetLinePositions(),
                                                  (parent != null) ? parent.ID : ""
                                                  );
            }
        }
    }