示例#1
0
 public palyerManager getInstance()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     return(Instance);
 }
示例#2
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else if (Instance != null)
     {
         Destroy(gameObject);
     }
 }