예제 #1
0
    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);
    }
예제 #2
0
 void Start()
 {
     dps = GetComponent <DPSpritePalette>();
 }
 public void OnEnable()
 {
     dsp = (DPSpritePalette)target;
 }