Пример #1
0
    // overides

    void Start()
    {
        _netStation          = GetComponent <NetStation>();
        _netStation.Message += onNetStationMessage;

        _log = FindObjectOfType <Log>();
    }
Пример #2
0
    // overrides
    void Start()
    {
        var now  = DateTime.Now;
        var date = String.Join("-", (new int[] { now.Year, now.Month, now.Day }).Select(num => Pad(num, 2)));
        var time = String.Join("-", (new int[] { now.Hour, now.Minute, now.Second }).Select(num => Pad(num, 2)));

        _writer = new StreamWriter($"log/log_{date}_{time}.txt");

        _gazeClient         = FindObjectOfType <GazeClient>();
        _gazeClient.Sample += onGazeSample;

        _netStation = FindObjectOfType <NetStation>();
    }