no message

This commit is contained in:
梦语 2024-11-04 18:43:40 +08:00
parent 07b26e6c33
commit c9435ec4b1
5 changed files with 25 additions and 51 deletions

File diff suppressed because one or more lines are too long

View File

@ -17,10 +17,7 @@ namespace Ether
{ {
public Dictionary<Key, MultListNode<Key, Value>> allMultiListNode = new Dictionary<Key, MultListNode<Key, Value>>(); public Dictionary<Key, MultListNode<Key, Value>> allMultiListNode = new Dictionary<Key, MultListNode<Key, Value>>();
public int Count public int Count => allMultiListNode.Count;
{
get { return allMultiListNode.Count; }
}
public Dictionary<Key, MultListNode<Key, Value>> Root { get; private set; } = new Dictionary<Key, MultListNode<Key, Value>>(); public Dictionary<Key, MultListNode<Key, Value>> Root { get; private set; } = new Dictionary<Key, MultListNode<Key, Value>>();

View File

@ -223,5 +223,18 @@ namespace Ether
// LabelTextAttribute attribute = GetEnumFieldAttribute<T, LabelTextAttribute>(enumValue); // LabelTextAttribute attribute = GetEnumFieldAttribute<T, LabelTextAttribute>(enumValue);
// return attribute.Text; // return attribute.Text;
//} //}
public static void TakeScreenshot()
{
string screenshotPath = Application.persistentDataPath + "/Screenshots/";
string fileName = DateTime.Now.ToString("yyyyMMddHHmmss") + ".png";
if (!Directory.Exists(screenshotPath))
{
Directory.CreateDirectory(screenshotPath);
}
ScreenCapture.CaptureScreenshot(screenshotPath + fileName);
}
} }
} }

View File

@ -12,5 +12,5 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c5ac578b65530ce44be05b4dd02c3247, type: 3} m_Script: {fileID: 11500000, guid: c5ac578b65530ce44be05b4dd02c3247, type: 3}
m_Name: GlobalSettings m_Name: GlobalSettings
m_EditorClassIdentifier: m_EditorClassIdentifier:
startFrame: startFrame: LoginFrame
startScence: Boot startScence: DiningCar

View File

@ -87,12 +87,11 @@ namespace Ether
_BtnExStartGame.OnEnter.AddListener(() => _BtnExStartGame.OnEnter.AddListener(() =>
{ {
_BtnExStartGame.transform.localScale = _BtnExStartGame.BaseScale * 1.05f;
}); });
_BtnExStartGame.OnExit.AddListener(() => _BtnExStartGame.OnExit.AddListener(() =>
{ {
_BtnExStartGame.transform.localScale = _BtnExStartGame.BaseScale;
}); });
_BtnExSetting.OnClick.AddListener(() => _BtnExSetting.OnClick.AddListener(() =>
@ -112,18 +111,19 @@ namespace Ether
_BtnExExit.OnClick.AddListener(() => _BtnExExit.OnClick.AddListener(() =>
{ {
Application.Quit(); CommonTools.TakeScreenshot();
Debug.Log("点击离开游戏"); // Application.Quit();
// Debug.Log("点击离开游戏");
}); });
_BtnExExit.OnEnter.AddListener(() => _BtnExExit.OnEnter.AddListener(() =>
{ {
_BtnExExit.transform.localScale = _BtnExExit.BaseScale * 1.05f;
}); });
_BtnExExit.OnExit.AddListener(() => _BtnExExit.OnExit.AddListener(() =>
{ {
_BtnExExit.transform.localScale = _BtnExExit.BaseScale; //_BtnExExit.transform.localScale = _BtnExExit.BaseScale;
}); });
} }