public void GenerateToll(TollInRoad tollRoad) { if (Toll != null) { return; } Toll = new TollGenerator(tollRoad); }
//------------------------------------------------------------------------------------------------- /// <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); }