SetTracker() 공개 메소드

public SetTracker ( Tracker, tracker ) : void
tracker Tracker,
리턴 void
예제 #1
0
        /// <summary>
        /// DONT USE THIS METHOD. UNITY INTERNAL MONOBEHAVIOUR.
        /// </summary>
        public void Start()
        {
            switch (traceFormat)
            {
            case "json":
                this.traceFormatter = new SimpleJsonFormat();
                break;

            case "xapi":
                this.traceFormatter = new XApiFormat();
                break;

            default:
                this.traceFormatter = new DefaultTraceFromat();
                break;
            }
            filePath    = GeneratePath();
            rawFilePath = filePath + "Raw.csv";

            switch (storageType)
            {
            case "net":
                filePath   += "Pending";
                mainStorage = new NetStorage(this, host, trackingCode);
                mainStorage.SetTracker(this);
                backupStorage = new LocalStorage(filePath);
                backupStorage.SetTracker(this);
                break;

            default:
                mainStorage = new LocalStorage(filePath);
                mainStorage.SetTracker(this);
                break;
            }

            this.startListener.SetTraceFormatter(this.traceFormatter);
            this.Connect();
            this.nextFlush = flushInterval;

            UnityEngine.Object.DontDestroyOnLoad(this);
        }
예제 #2
0
    public void Start()
    {
        switch (traceFormat) {
        case "json":
            this.traceFormatter = new SimpleJsonFormat ();
            break;
        case "xapi":
            this.traceFormatter = new XApiFormat ();
            break;
        default:
            this.traceFormatter = new DefaultTraceFromat ();
            break;
        }
        filePath = GeneratePath ();
        switch (storageType) {
        case "net":
            filePath += "Pending";
            mainStorage = new NetStorage (this, host, trackingCode);
            mainStorage.SetTracker (this);
            backupStorage = new LocalStorage (filePath);
            backupStorage.SetTracker (this);
            break;
        default:
            mainStorage = new LocalStorage (filePath);
            mainStorage.SetTracker (this);
            break;
        }

        this.startListener.SetTraceFormatter (this.traceFormatter);
        this.Connect ();
        this.nextFlush = flushInterval;

        UnityEngine.Object.DontDestroyOnLoad (this);
    }