refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -6,19 +6,19 @@ using System.Globalization;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cryville.Crtr {
|
||||
public struct MotionRegistry {
|
||||
public readonly struct MotionRegistry {
|
||||
readonly Type m_Type;
|
||||
public Type Type {
|
||||
public readonly Type Type {
|
||||
get { return m_Type; }
|
||||
}
|
||||
|
||||
readonly Vector m_InitValue;
|
||||
public Vector InitValue {
|
||||
public readonly Vector InitValue {
|
||||
get { return m_InitValue.Clone(); }
|
||||
}
|
||||
|
||||
readonly Vector m_GlobalInitValue;
|
||||
public Vector GlobalInitValue {
|
||||
public readonly Vector GlobalInitValue {
|
||||
get { return m_GlobalInitValue.Clone(); }
|
||||
}
|
||||
|
||||
@@ -43,9 +43,9 @@ namespace Cryville.Crtr {
|
||||
public Vector Value;
|
||||
|
||||
public void Init(Type type) {
|
||||
if (Time == null) Time = new Vec1(float.NegativeInfinity);
|
||||
if (EndTime == null) EndTime = new Vec1(float.NegativeInfinity);
|
||||
if (Value == null) Value = (Vector)Activator.CreateInstance(type);
|
||||
Time ??= new Vec1(float.NegativeInfinity);
|
||||
EndTime ??= new Vec1(float.NegativeInfinity);
|
||||
Value ??= (Vector)Activator.CreateInstance(type);
|
||||
}
|
||||
|
||||
public void CopyTo(MotionNode dest) {
|
||||
@@ -407,8 +407,7 @@ namespace Cryville.Crtr {
|
||||
values = new float[] { op.AsNumber() };
|
||||
}
|
||||
else if (op.Type == PdtInternalType.Vector) {
|
||||
int type;
|
||||
op.GetArraySuffix(out type, out _);
|
||||
op.GetArraySuffix(out int type, out _);
|
||||
if (type != PdtInternalType.Number)
|
||||
throw new InvalidOperationException("Not a vector of numbers");
|
||||
values = new float[(op.Length - sizeof(int)) / sizeof(float)];
|
||||
|
Reference in New Issue
Block a user