Example #1
0
 public void GenerateToll(TollInRoad tollRoad)
 {
     if (Toll != null)
     {
         return;
     }
     Toll = new TollGenerator(tollRoad);
 }
Example #2
0
        //-------------------------------------------------------------------------------------------------

        /// <summary>
        /// Initializes a new instance of the <see cref="TollGenerator" /> class.
        /// </summary>
        public TollGenerator(TollInRoad tollRoad)
        {
            Road = tollRoad;
            Cost = GameCore.Instance.Random.Next(5, 15);
        }