Пример #1
0
 public static void saveMoneyPlayerToList(int source, PlayerMoney job)
 {
     if (PlayerMoney.ContainsKey(source))
     {
         PlayerMoney[source] = job;
     }
     else
     {
         PlayerMoney.Add(source, job);
     }
 }
Пример #2
0
        public static void saveMoneyPlayerToList(Player player, PlayerMoney job)
        {
            int source = ID.GetPLayerId(player);

            if (PlayerMoney.ContainsKey(source))
            {
                PlayerMoney[source] = job;
            }
            else
            {
                PlayerMoney.Add(source, job);
            }
        }