You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewException("The method \"OnDestroy\" is not allowed to be defined in classes that inherit NetworkedBehaviour. Please override the \"OnDestroyed\" method instead");
186
-
}
187
-
elseif(methods[i].Name=="OnDisable")
188
-
{
189
-
thrownewException("The method \"OnDisable\" is not allowed to be defined in classes that inherit NetworkedBehaviour. Please override the \"OnDisabled\" method instead");
190
-
}
191
-
elseif(methods[i].Name=="OnEnable")
192
-
{
193
-
thrownewException("The method \"OnEnable\" is not allowed to be defined in classes that inherit NetworkedBehaviour. Please override the \"OnEnable\" method instead");
194
-
}
195
-
}
196
-
}
197
-
}
198
-
199
-
/// <summary>
200
-
/// Invoked when the object is Disabled
201
-
/// </summary>
202
-
publicvirtualvoidOnDisabled()
203
-
{
204
-
205
-
}
206
-
207
-
/// <summary>
208
-
/// Invoked when the object is Destroyed
209
-
/// </summary>
210
-
publicvirtualvoidOnDestroyed()
211
-
{
212
-
213
-
}
214
-
215
-
/// <summary>
216
-
/// Invoked when the object is Enabled
217
-
/// </summary>
218
-
publicvirtualvoidOnEnabled()
219
-
{
220
-
221
-
}
222
-
153
+
223
154
/// <summary>
224
155
/// Gets called when SyncedVars gets updated
225
156
/// </summary>
@@ -699,8 +630,8 @@ internal static void SetNetworkedVarData(List<INetworkedVar> networkedVarList, S
0 commit comments