Example #1
0
 // Use this for initialization
 void Start()
 {
     //这里控制是否使用数据库
     useDb = false;
     // 初始化计时时间
     statusTime    = Time.time;
     operationTime = Time.time;
     AllTanks      = topController.AllPlayers;
     manager       = new DataMgr();
     manager.Initial();
     if (useDb && PhotonNetwork.isMasterClient)
     {
         manager.GetGameId();
     }
 }