Ejemplo n.º 1
0
        void Start()
        {
            _logOrder = logOrder;
            str_log   = "";

            if (useServer)
            {
                log_file_directory = Application.persistentDataPath + "/ServerLog/";
                if (!Directory.Exists(log_file_directory))
                {
                    Directory.CreateDirectory(log_file_directory);
                }

                pending_file_directory = Application.persistentDataPath + "/ServerLog/Pending/";
                if (!Directory.Exists(pending_file_directory))
                {
                    Directory.CreateDirectory(pending_file_directory);
                }

                pending_file_path = pending_file_directory + instance.pending_file;

                UnityEngine.Debug.Log("Pending File Path: " + pending_file_path);

                StartCoroutine(ServerRoutine());
            }
        }
Ejemplo n.º 2
0
 void Start()
 {
     _logOrder = logOrder;
     str_log   = "";
     if (textLogUI != null)
     {
         textLogUI.text = "";
     }
 }