Skip to content

Commit 3c843d7

Browse files
committed
Updated SteamManager to 1.0.6
1 parent 43ee9bb commit 3c843d7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Assets/Scripts/Steamworks.NET/SteamManager.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// The SteamManager is designed to work with Steamworks.NET
22
// This file is released into the public domain.
33
// Where that dedication is not recognized you are granted a perpetual,
4-
// irrevokable license to copy and modify this file as you see fit.
4+
// irrevocable license to copy and modify this file as you see fit.
55
//
6-
// Version: 1.0.5
6+
// Version: 1.0.6
77

88
using UnityEngine;
99
using System.Collections;
@@ -27,7 +27,7 @@ private static SteamManager Instance {
2727
}
2828
}
2929

30-
private static bool s_EverInialized;
30+
private static bool s_EverInitialized;
3131

3232
private bool m_bInitialized;
3333
public static bool Initialized {
@@ -49,7 +49,7 @@ private void Awake() {
4949
}
5050
s_instance = this;
5151

52-
if(s_EverInialized) {
52+
if(s_EverInitialized) {
5353
// This is almost always an error.
5454
// The most common case where this happens is when SteamManager gets destroyed because of Application.Quit(),
5555
// and then some Steamworks code in some other OnDestroy gets called afterwards, creating a new SteamManager.
@@ -80,7 +80,7 @@ private void Awake() {
8080
return;
8181
}
8282
}
83-
catch (System.DllNotFoundException e) { // We catch this exception here, as it will be the first occurence of it.
83+
catch (System.DllNotFoundException e) { // We catch this exception here, as it will be the first occurrence of it.
8484
Debug.LogError("[Steamworks.NET] Could not load [lib]steam_api.dll/so/dylib. It's likely not in the correct location. Refer to the README for more details.\n" + e, this);
8585

8686
Application.Quit();
@@ -103,7 +103,7 @@ private void Awake() {
103103
return;
104104
}
105105

106-
s_EverInialized = true;
106+
s_EverInitialized = true;
107107
}
108108

109109
// This should only ever get called on first load and after an Assembly reload, You should never Disable the Steamworks Manager yourself.
@@ -117,8 +117,8 @@ private void OnEnable() {
117117
}
118118

119119
if (m_SteamAPIWarningMessageHook == null) {
120-
// Set up our callback to recieve warning messages from Steam.
121-
// You must launch with "-debug_steamapi" in the launch args to recieve warnings.
120+
// Set up our callback to receive warning messages from Steam.
121+
// You must launch with "-debug_steamapi" in the launch args to receive warnings.
122122
m_SteamAPIWarningMessageHook = new SteamAPIWarningMessageHook_t(SteamAPIDebugTextHook);
123123
SteamClient.SetWarningMessageHook(m_SteamAPIWarningMessageHook);
124124
}

0 commit comments

Comments
 (0)