Beispiel #1
0
        /// <summary>
        /// Constructors an activity for the provided activity type and name.
        /// </summary>
        /// <param name="activityType">The activity type for the activity.</param>
        /// <param name="name">The name for the activity.</param>
        public Repair(RepairType repairType, string name = null)
        {
            Id = (int)repairType;

            // If we don't have a name argument,
            // then use the string representation of the activity type for the name.
            Name = name ?? repairType.ToString();
        }
Beispiel #2
0
 public void InformRepairType(RepairType repairType)
 {
     Debug.Log(repairType);
     playerControllerBase.SetRepairTypeHelperText(repairType.ToString());
 }