コード例 #1
0
        protected override void SetLovOffset(ShipModel_BattleResult model)
        {
            LovLevel lovLevel   = SortieBattleUtils.GetLovLevel(model);
            Vector3  localScale = Vector3.one * SortieBattleUtils.GetLovScaleMagnification(lovLevel);
            float    t          = Mathe.Rate(0f, 1f, 1f / (float)(Enum.GetValues(typeof(LovLevel)).Length - 1) * (float)(lovLevel - 1));

            _vTweenTargetPos          = Vector3.Lerp(originPos, lovMaxPos, t);
            base.transform.localScale = localScale;
            base.transform.localPositionY(_vTweenTargetPos.y);
        }
コード例 #2
0
        protected override void SetLovOffset(ShipModel_BattleResult model)
        {
            LovLevel lovLevel   = SortieBattleUtils.GetLovLevel(model);
            Vector3  localScale = Vector3.get_one() * SortieBattleUtils.GetLovScaleMagnification(lovLevel);
            float    num        = Mathe.Rate(0f, 1f, 1f / (float)(Enum.GetValues(typeof(LovLevel)).get_Length() - 1) * (float)(lovLevel - LovLevel.Normal));

            this._vTweenTargetPos = Vector3.Lerp(this.originPos, this.lovMaxPos, num);
            base.get_transform().set_localScale(localScale);
            base.get_transform().localPositionY(this._vTweenTargetPos.y);
        }