Exemplo n.º 1
0
 private void LogEventGameEnd(EndType end)
 {
     if (IsFirebaseInited)
     {
         FirebaseAnalytics.LogEvent("game_end", new Parameter[]
         {
             new Parameter(PARAM_END, end.ToString()),
             new Parameter(PARAM_WEEK, Modeler.Week.weekNumber.ToString())
         });
     }
     Debug.Log($"EVENT: game_end\n" +
               $"{PARAM_END}: {end}  {PARAM_WEEK}: {Modeler.Week.weekNumber}");
 }
Exemplo n.º 2
0
        public double End(EndType end)
        {
            switch (end)
            {
            case EndType.Min:
                return(Min);

            case EndType.Max:
                return(Max);

            default:
                throw new ArgumentOutOfRangeException("end", end, "Illegal EndType " + end.ToString());
            }
        }