コード例 #1
0
 public void InitCoinText()
 {
     for (int i = 0; i < CoinText.Count; i++)
     {
         CoinText[i].text = currencyManager.GetAmount(currencyType).ToString();
     }
 }
コード例 #2
0
ファイル: FireBase.cs プロジェクト: good0204/zzz2
 public void GameStart()
 {
     ToTalPlayCount++;
     today       = DateTime.UtcNow.AddHours(9).ToString("yyyy-MM-dd");
     IsGameStart = true;
     Parameter[] GameStartParameters =
     {
         new Parameter("Game_Start",    Game_Start),
         new Parameter("LevelNum",      areaManager.GetCurrentAreaNum() + 1),
         new Parameter("LevelOrder",    areaManager.GetCurrentAreaOrder() + 1),
         new Parameter("Stage",         stageManager.GetCurrentStage() + 1),
         new Parameter("MapId",         stageManager.GetCurrentStageId()),
         new Parameter("play_count",    ToTalPlayCount),
         new Parameter("coin_currency", currencyManager.GetAmount(currencyType)),
         new Parameter("date",          today),
         new Parameter("Version",       Application.version)
     };
     FirebaseAnalytics.LogEvent("play_start", GameStartParameters);
     SaveManager.Save(this);
     // string a = string.Format("EventName = play_start  LevelNum = {0} ,MapId  ={1} , play_count = {2} , coin_currency = {3} , Stage = {4}, LevelOrder = {5}", areaManager.GetCurrentAreaNum() + 1, stageManager.GetCurrentStageId(), ToTalPlayCount, currencyManager.GetAmount(currencyType), stageManager.GetCurrentStage() + 1, areaManager.GetCurrentAreaOrder() + 1);
     // Debug.Log(a);
 }