public Object Frame(int frameTime) { if (started) { var cu = Convert.ToSingle(current.Frame(frameTime)); var per = cu / Convert.ToSingle(max.Frame(frameTime)); currentValue = per; } if (float.IsNaN(currentValue)) { currentValue = 1; } return(currentValue); }
public override void Frame(IUIDataManager uiDataManager, int frameTime) { base.Frame(uiDataManager, frameTime); IAutoValue auto = GetAuto(PrefabAuto); if (auto != null) { auto.Frame(frameTime); } }