修改水
This commit is contained in:
@@ -18,7 +18,7 @@ public class SceneSettings : MonoBehaviour
|
||||
|
||||
public KWS_Ocean Water;
|
||||
|
||||
// public ObiUpdater obiFixedUpdater;
|
||||
public ObiUpdater obiFixedUpdater;
|
||||
|
||||
public LineRenderer LineRenderer;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace NBF
|
||||
|
||||
private void LateUpdate()
|
||||
{
|
||||
// FixLine();
|
||||
FixLine();
|
||||
}
|
||||
|
||||
private void FixedUpdate()
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using NBF;
|
||||
using NBF;
|
||||
using Obi;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
|
||||
public class FLineHandler : MonoBehaviour
|
||||
@@ -16,6 +14,8 @@ public class FLineHandler : MonoBehaviour
|
||||
|
||||
public LineType lineType = LineType.TwoSegment;
|
||||
|
||||
// public ObiParticleAttachment startParticleAttachment;
|
||||
|
||||
public ObiRope obiRopeSegment_1;
|
||||
|
||||
public ObiRope obiRopeSegment_2;
|
||||
@@ -53,6 +53,9 @@ public class FLineHandler : MonoBehaviour
|
||||
private Transform waterPlane;
|
||||
|
||||
|
||||
public LineRenderer LineRenderer1;
|
||||
public LineRenderer LineRenderer2;
|
||||
|
||||
// public float ropeToHookDistance;
|
||||
|
||||
void Start()
|
||||
@@ -152,6 +155,7 @@ public class FLineHandler : MonoBehaviour
|
||||
|
||||
// LineConnector_1.minDistance = LineConnector_1.maxDistance;
|
||||
}
|
||||
|
||||
|
||||
public void SetSegmentTwoLenght(float lenght)
|
||||
{
|
||||
|
||||
@@ -71,6 +71,7 @@ namespace NBF
|
||||
transform.localPosition = Vector3.zero;
|
||||
transform.localRotation = Quaternion.identity;
|
||||
transform.localScale = Vector3.one;
|
||||
SceneSettings.Instance.GearNode.position = Player.transform.position;
|
||||
yield return 1;
|
||||
var obj = new GameObject($"rod_{itemInfo.Id}_{itemInfo.ConfigId}");
|
||||
obj.transform.SetParent(SceneSettings.Instance.GearNode);
|
||||
@@ -172,7 +173,7 @@ namespace NBF
|
||||
Weight.Init(Player, this);
|
||||
}
|
||||
|
||||
yield return 1; //等待1帧
|
||||
yield return 2; //等待1帧
|
||||
transform.SetParent(Player.ModelAsset.RodRoot);
|
||||
transform.localPosition = Vector3.zero;
|
||||
transform.rotation = Player.ModelAsset.RodRoot.rotation;
|
||||
@@ -220,8 +221,9 @@ namespace NBF
|
||||
lineHandler.LineConnector_0.target = Asset.lineConnector; //.GetComponent<Rigidbody>();
|
||||
// lineHandler.toRodConnector.target = rodAsset.lineConnector;
|
||||
lineHandler.Rod = this;
|
||||
// var obiSolver = lineHandler.GetComponent<ObiSolver>();
|
||||
// SceneSettings.Instance.obiFixedUpdater.solvers.Add(obiSolver);
|
||||
// lineHandler.startParticleAttachment.target = Asset.lineConnector;
|
||||
var obiSolver = lineHandler.GetComponent<ObiSolver>();
|
||||
SceneSettings.Instance.obiFixedUpdater.solvers.Add(obiSolver);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,8 +35,8 @@ namespace Fantasy
|
||||
public const uint C2G_LoginRequest = 268445460;
|
||||
public const uint G2C_LoginResponse = 402663188;
|
||||
public const uint G2C_RepeatLogin = 134227729;
|
||||
public const uint C2Game_GetRoleInfoRequest = 2281711386;
|
||||
public const uint Game2C_GetRoleInfoResponse = 2415929114;
|
||||
public const uint C2Game_GetRoleInfoRequest = 2281711387;
|
||||
public const uint Game2C_GetRoleInfoResponse = 2415929115;
|
||||
public const uint Map2C_RoleEnterRoomNotify = 2147493653;
|
||||
public const uint Map2C_RoleExitRoomNotify = 2147493654;
|
||||
public const uint C2Map_TakeItemRequest = 2281711388;
|
||||
|
||||
Reference in New Issue
Block a user