Skip to content

Commit

Permalink
Upload Dll.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogoson committed Aug 24, 2019
1 parent d6cc151 commit d69ebe5
Show file tree
Hide file tree
Showing 17 changed files with 200 additions and 110 deletions.
2 changes: 1 addition & 1 deletion CodeProject
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# MGS-Camera
- [中文手册](./README_ZH.md)

## Summary
- Unity plugin for control camera in scene.
Expand Down
45 changes: 0 additions & 45 deletions README_ZH.md

This file was deleted.

Binary file modified UnityProject/Assets/Editor/MGS/MGS.UCameraEditor.dll
Binary file not shown.
Binary file modified UnityProject/Assets/Editor/MGS/MGS.UCommonEditor.dll
Binary file not shown.
Binary file added UnityProject/Assets/Plugins/MGS/MGS.Common.dll
Binary file not shown.
20 changes: 20 additions & 0 deletions UnityProject/Assets/Plugins/MGS/MGS.Common.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified UnityProject/Assets/Plugins/MGS/MGS.UCamera.dll
Binary file not shown.
76 changes: 13 additions & 63 deletions UnityProject/Assets/Plugins/MGS/MGS.UCamera.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
20 changes: 20 additions & 0 deletions UnityProject/Assets/Plugins/MGS/MGS.UCommon.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions UnityProject/Assets/Scripts/MGS/Logger.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions UnityProject/Assets/Scripts/MGS/Logger/LogUtilitySettings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*************************************************************************
* Copyright © 2018 Mogoson. All rights reserved.
*------------------------------------------------------------------------
* File : LogUtilitySettings.cs
* Description : Settings of log utility.
*------------------------------------------------------------------------
* Author : Mogoson
* Version : 0.1.0
* Date : 9/19/2018
* Description : Initial development version.
*************************************************************************/

using MGS.Common.Logger;
using UnityEngine;

namespace MGS.Logger
{
/// <summary>
/// Settings of log utility.
/// </summary>
static class LogUtilitySettings
{
#region Field and Property
#if !UNITY_EDITOR
/// <summary>
/// Path of log file.
/// </summary>
static readonly string LogPath = Application.persistentDataPath + "/Log/";
#endif
#endregion

#region Public Method
/// <summary>
/// Initialize log utility.
/// </summary>
[RuntimeInitializeOnLoadMethod]
static void Initialize()
{
#if UNITY_EDITOR
LogUtility.Logger = UnityDebugger.Instance;
#else
FileLogger.Instance.LogPath = LogPath;
LogUtility.Logger = FileLogger.Instance;
#endif
}
#endregion
}
}
12 changes: 12 additions & 0 deletions UnityProject/Assets/Scripts/MGS/Logger/LogUtilitySettings.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 65 additions & 0 deletions UnityProject/Assets/Scripts/MGS/Logger/UnityDebugger.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*************************************************************************
* Copyright © 2018 Mogoson. All rights reserved.
*------------------------------------------------------------------------
* File : UnityDebugger.cs
* Description : Debugger for unity editor.
*------------------------------------------------------------------------
* Author : Mogoson
* Version : 0.1.0
* Date : 9/19/2018
* Description : Initial development version.
*************************************************************************/

using MGS.Common.DesignPattern;
using UnityEngine;

namespace MGS.Logger
{
/// <summary>
/// Debugger for unity editor.
/// </summary>
public sealed class UnityDebugger : Singleton<UnityDebugger>, Common.Logger.ILogger
{
#region Private Method
/// <summary>
/// Constructor.
/// </summary>
private UnityDebugger() { }
#endregion

#region Public Method
/// <summary>
/// Logs a formatted message.
/// </summary>
/// <param name="level">Level of log message.</param>
/// <param name="format">A composite format string.</param>
/// <param name="args">Format arguments.</param>
public void Log(int level, string format, params object[] args)
{
Debug.LogFormat(format, args);
}

/// <summary>
/// Logs a formatted error message.
/// </summary>
/// <param name="level">Level of error message.</param>
/// <param name="format">A composite format string.</param>
/// <param name="args">Format arguments.</param>
public void LogError(int level, string format, params object[] args)
{
Debug.LogErrorFormat(format, args);
}

/// <summary>
/// Logs a formatted warning message.
/// </summary>
/// <param name="level">Level of warning message.</param>
/// <param name="format">A composite format string.</param>
/// <param name="args">Format arguments.</param>
public void LogWarning(int level, string format, params object[] args)
{
Debug.LogWarningFormat(format, args);
}
#endregion
}
}
12 changes: 12 additions & 0 deletions UnityProject/Assets/Scripts/MGS/Logger/UnityDebugger.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified UnityProject/ProjectSettings/ProjectSettings.asset
Binary file not shown.

0 comments on commit d69ebe5

Please sign in to comment.