public override EditAnimation Duplicate() { EditAnimationSimple ret = new EditAnimationSimple(); ret.name = this.name; ret.duration = this.duration; ret.faces = this.faces; ret.color = this.color; ret.count = this.count; return(ret); }
public EditAnimation AddNewDefaultAnimation() { var newAnim = new Animations.EditAnimationSimple(); newAnim.duration = 3.0f; newAnim.color = EditColor.MakeRGB(new Color32(0xFF, 0x30, 0x00, 0xFF)); newAnim.faces = 0b11111111111111111111; newAnim.name = "New Lighting Pattern"; animations.Add(newAnim); return(newAnim); }