예제 #1
0
        /// <summary>
        /// Returns colour if the given honey coumb
        /// </summary>
        /// <param name="type">Type of the comb</param>
        /// <returns>The <see cref="Color"/> of the comb and a new <see cref="Color.red"/> if the given <see cref="HoneyCombType"/> does not exists as a key in the <see cref="honeyCoumbColour"/> dictionary</returns>
        public static Color GetCombColour(HoneyCombType type)
        {
            honeyCoumbColour.TryGetValue(type, out var temp);

            if (temp == null)
            {
                return(new Color(1, 0, 0));
            }

            return(temp);
        }
예제 #2
0
 /// <summary>
 /// Makes a <see cref="HoneyComb"/> for the given <see cref="HoneyCombType"/>
 /// </summary>
 /// <param name="type"><see cref="HoneyCombType"> that this comb is</see></param>
 public HoneyComb(HoneyCombType type) : base(new CultureInfo("en-US", false).TextInfo.ToTitleCase($"{type.ToString()} Comb".ToLower()))
 {
     usesGameObject = true;
     this.type      = type;
 }