public void Copy(Ingredient thingToCopy) { this.ingredientName = thingToCopy.ingredientName; this.spicyness = thingToCopy.spicyness; this.chunkyness = thingToCopy.chunkyness; this.isMeat = thingToCopy.isMeat; this.currentState = thingToCopy.currentState; this.prefab = thingToCopy.prefab; this.halfedPrefab = thingToCopy.halfedPrefab; this.quateredPrefab = thingToCopy.quateredPrefab; this.blendedPrefab = thingToCopy.blendedPrefab; this.colour = thingToCopy.colour; this.colourTag = thingToCopy.colourTag; this.sweetness = thingToCopy.sweetness; this.icon = thingToCopy.icon; }
public Colour ConvertColour(Colour_Tag colourTag) { switch (colourTag) { case Colour_Tag.RED: return(red); case Colour_Tag.BLUE: return(blue); case Colour_Tag.LIGHT_GREEN: return(lightGreen); case Colour_Tag.DARK_GREEN: return(darkGreen); case Colour_Tag.ORANGE: return(orange); case Colour_Tag.PINK: return(pink); case Colour_Tag.YELLOW: return(yellow); case Colour_Tag.DARK_RED: return(darkRed); case Colour_Tag.AQUA: return(aqua); case Colour_Tag.ORCHID: return(orchid); case Colour_Tag.SALMON: return(salmon); case Colour_Tag.VIOLET: return(violet); } Debug.Log("ConvertColour() returned null!"); return(null); }