I found the answer for my questions. I need to add this code in my layer to get Update method.
public override bool Init()
{
ScheduleUpdate();
return base.Init();
}
public override void Update(float dt)
{
base.Update(dt);
}
I found it this: link to stackoverflow