void Awake()
 {
     instance = this;
 }
 private void OnDestroy()
 {
     DestroyFragments();
     instance = null;
 }
Beispiel #3
0
 private void OnDestroy()
 {
     DestroyFragments();
     instance = null;
 }
Beispiel #4
0
 void Awake()
 {
     instance = this;
 }
Beispiel #5
0
 void Awake()
 {
     DontDestroyOnLoad(gameObject);
     instance = this;
 }
Beispiel #6
0
 private void OnDestroy()
 {
     this.DestroyFragments();
     FragmentPool.instance = (FragmentPool)null;
 }
Beispiel #7
0
 private void Awake()
 {
     Object.DontDestroyOnLoad((Object)((Component)this).get_gameObject());
     FragmentPool.instance = this;
 }