mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交编辑器确定数据
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Linq;
|
||||
using JNGame.Math;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -54,11 +55,11 @@ namespace GAS.Runtime
|
||||
[InfoBox("计算逻辑与ScalableFloatModCalculation一致, 公式:AttributeValue * k + b")]
|
||||
[TabGroup("Default", "AttributeBasedModCalculation")]
|
||||
[LabelText("系数(k)")]
|
||||
public float k = 1;
|
||||
public LFloat k = 1;
|
||||
|
||||
[TabGroup("Default", "AttributeBasedModCalculation")]
|
||||
[LabelText("常量(b)")]
|
||||
public float b = 0;
|
||||
public LFloat b = 0;
|
||||
|
||||
public override float CalculateMagnitude(GameplayEffectSpec spec, float modifierMagnitude)
|
||||
{
|
||||
|
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 49241b5db40b450f934fb9de0841b2fc
|
||||
timeCreated: 1729415696
|
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f1317ff9b314419b0e48ae76657c960
|
||||
timeCreated: 1729415730
|
@@ -1,28 +0,0 @@
|
||||
using System;
|
||||
using JNGame.Math;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace JNGame.Runtime.Odin.TypeCustomize
|
||||
{
|
||||
[Serializable]
|
||||
public class OdinLVector3
|
||||
{
|
||||
[LabelText("X (x1000)")]
|
||||
public int X;
|
||||
[LabelText("Y (x1000)")]
|
||||
public int Y;
|
||||
[LabelText("Z (x1000)")]
|
||||
public int Z;
|
||||
|
||||
public Vector3 ToVector3()
|
||||
{
|
||||
return (new LVector3(true, X * LFloat.RateOfOldPrecision, Y * LFloat.RateOfOldPrecision, Z * LFloat.RateOfOldPrecision)).ToVector3();
|
||||
}
|
||||
|
||||
public LVector3 ToLVector3()
|
||||
{
|
||||
return (new LVector3(true, X * LFloat.RateOfOldPrecision, Y * LFloat.RateOfOldPrecision, Z * LFloat.RateOfOldPrecision));
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bfdfa8bae636419282b29d0cfb4d9239
|
||||
timeCreated: 1729415750
|
Reference in New Issue
Block a user