void Start() { copyTexture = CopyTexture(originalTexture); dps = GetComponent <DPSpritePalette>(); dps.SetPalette(copyTexture); // change to the palette index 1, the Base Palette (index 0) must not be changed!! dps.SetPaletteIndex(1); InvokeRepeating("UpdatePalette", 1.0f, 1.0f); }
void Start() { dps = GetComponent <DPSpritePalette>(); }
public void OnEnable() { dsp = (DPSpritePalette)target; }