Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 void OnDestroy()
 {
     singletonInstance = null;
 }