Hi,
My singleton is made like this:
public class PlayerProgress : MonoBehaviour
{
// Singleton
public static PlayerProgress Instance;
void Awake()
{
// Singleton
if (Instance != null && Instance != this)
{
Destroy(this.gameObject);
}
Instance = this;
DontDestroyOnLoad(this.gameObject);
}
}
My problem #1 is when I reload the scene that contains this PlayerProgress 2 times, it gets duplicated and generates another PlayerProgress.
My problem #2: Is it possible to not have an instance of this in every scene and one gets called upon calling PlayerProgress.Instance.something ?
Cheers.