void Awake() { //print(gameObject.name); if (singletonInstance) Debug.LogError("have singletonInstance"); singletonInstance = this; //print(gameObject.name); foreach (TeamInfo i in teamNameListInfo) { addTeam(i); } //print("Awake "+teamLoseInfoList.Count); }
void OnDestroy() { singletonInstance = null; }