C
C#2y ago
Kaelen

✅ [RESOLVED]It seems that my variables is destroyed after the Awake()

Hello, I’m trying to accessing a variable from another script with a singleton. When I debug the variable on the Awake function it return the correct object, but then I debug the variable on another method the object is equal to null
2 Replies
Korbah
Korbah2y ago
I know very little of Unity, but it looks like PlayerJoined is being called before Awake() in this instance from your log
Kaelen
KaelenOP2y ago
Should I use a coroutine ? @Korbah
Want results from more Discord servers?
Add your server