ReplacePalette() public method

public ReplacePalette ( string name, IPalette p ) : void
name string
p IPalette
return void
Example #1
0
        public void ReplacePalette(string name, IPalette pal)
        {
            palette.ReplacePalette(name, pal);

            // Update cached PlayerReference if one exists
            if (palettes.ContainsKey(name))
            {
                palettes[name].Palette = pal;
            }
        }
Example #2
0
 public void ReplacePalette(string name, IPalette pal)
 {
     palette.ReplacePalette(name, pal); palettes[name].Palette = pal;
 }