rc 0.71
This commit is contained in:
@@ -127,6 +127,7 @@ public class CupidLobby : MonoBehaviour
|
||||
GameManager.BluePlayer = myPlayer;
|
||||
GameManager.RedPlayer = opponentPlayer;
|
||||
}
|
||||
GameManager.MyTeam = myTeam;
|
||||
|
||||
// LevelLoadManager.instance.SetupMatchMade(myTeam, myPlayer.Name, opponentPlayer.Name, $"L10 {myPlayer.l10_wins}-{myPlayer.l10_losses}", $"L10 {opponentPlayer.l10_wins}-{opponentPlayer.l10_losses}");
|
||||
LevelLoadManager.instance.SetupMatchMade(myTeam, myPlayer, opponentPlayer);
|
||||
|
||||
@@ -10,14 +10,21 @@ public class Logger
|
||||
{
|
||||
get
|
||||
{
|
||||
// Android (and iOS): dataPath is inside the package/APK and is not writable.
|
||||
if (Application.platform == RuntimePlatform.Android ||
|
||||
Application.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
return Application.persistentDataPath;
|
||||
}
|
||||
|
||||
string path = Application.dataPath;
|
||||
if (Application.platform == RuntimePlatform.OSXPlayer)
|
||||
{
|
||||
path += "/../../";
|
||||
path = Path.Combine(path, "..", "..");
|
||||
}
|
||||
else if (Application.platform == RuntimePlatform.WindowsPlayer)
|
||||
{
|
||||
path += "/../";
|
||||
path = Path.Combine(path, "..");
|
||||
}
|
||||
return path;
|
||||
}
|
||||
@@ -41,7 +48,7 @@ public class Logger
|
||||
if(!Enabled){return;}
|
||||
Debug.Log("Starting logger @ " + ApplicationDirectory);
|
||||
if(LogFilePath == null){
|
||||
LogFilePath = ApplicationDirectory + "Log.txt";
|
||||
LogFilePath = Path.Combine(ApplicationDirectory, "Log.txt");
|
||||
}
|
||||
File.WriteAllText(LogFilePath, "Logger initiated at " + DateTime.Now + "\n\n");
|
||||
}
|
||||
@@ -58,7 +65,7 @@ public class Logger
|
||||
}
|
||||
|
||||
public static void SetFileName(string fileName){
|
||||
instance.LogFilePath = ApplicationDirectory+fileName + ".txt";
|
||||
instance.LogFilePath = Path.Combine(ApplicationDirectory, fileName + ".txt");
|
||||
}
|
||||
|
||||
public static void SetFilePath(string path){
|
||||
|
||||
Reference in New Issue
Block a user