---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by luojunxin.
--- DateTime: 2020/8/20 17:30
---

local LActionAttrFloatModify = LActionAttrFloatModify or class("LActionAttrFloatModify", LActionBase);

function LActionAttrFloatModify:ctor()
end

function LActionAttrFloatModify:dtor()
end

function LActionAttrFloatModify:Init(attr, oldValue, newValue)
    self.target = attr;
    self.oldValue = oldValue;
    self.newValue = newValue;
    self.name = util.a2u8("ÊôÐÔÖµÐÞ¸Ä");
end

function LActionAttrFloatModify:Undo()
    self.target:SetFloat(self.oldValue, false);
end

function LActionAttrFloatModify:Redo()
    self.target:SetFloat(self.newValue, false);
end

_G.LActionAttrFloatModify = LActionAttrFloatModify;