mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-11-11 08:38:45 +00:00
基础案例 准备改帧同步了
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f1317ff9b314419b0e48ae76657c960
|
||||
timeCreated: 1729415730
|
||||
@@ -0,0 +1,28 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bfdfa8bae636419282b29d0cfb4d9239
|
||||
timeCreated: 1729415750
|
||||
Reference in New Issue
Block a user