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

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

function LActionAttrBoolModify:ctor()
end

function LActionAttrBoolModify:dtor()
end

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

function LActionAttrBoolModify:Undo()
    self.target:SetBool(self.oldValue, false);
end

function LActionAttrBoolModify:Redo()
    self.target:SetBool(self.newValue, false);
end

_G.LActionAttrBoolModify = LActionAttrBoolModify;