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