コード例 #1
0
        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);
        }
コード例 #2
0
        public override void Frame(IUIDataManager uiDataManager, int frameTime)
        {
            base.Frame(uiDataManager, frameTime);

            IAutoValue auto = GetAuto(PrefabAuto);

            if (auto != null)
            {
                auto.Frame(frameTime);
            }
        }