This website works better with JavaScript.
Home
Help
Sign In
Jam
/
GGJ_2019
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Singleton.cs edited online with Bitbucket changed Destroy(this gameobject) to Destroy(this)
master
Joshua Reason
5 years ago
parent
5ae5755629
commit
2f5c25366e
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
Assets/Scipts/Utility/Singleton.cs
+ 1
- 1
Assets/Scipts/Utility/Singleton.cs
View File
@ -20,7 +20,7 @@ public class MonoSingleton
: MonoBehaviour where T : MonoSingleton
private
void
SetAsSingleton
(
)
{
if
(
Instance
!
=
null
&
&
Instance
!
=
this
)
Destroy
(
this
.
gameObject
)
;
Destroy
(
this
)
;
else
Instance
=
(
T
)
this
;
Write
Preview
Loading…
Cancel
Save