修改FPS控制

This commit is contained in:
2025-05-28 23:45:19 +08:00
parent 8e7afd9ea1
commit cdcb007d6d
18 changed files with 1012 additions and 54 deletions

View File

@@ -37,7 +37,7 @@ public partial class FPlayer : MonoBehaviour
public CapsuleCollider Collider;
public Rigidbody Rigidbody;
private void Awake()
{
PlayerAnimatorCtrl = gameObject.GetComponent<PlayerAnimator>();
@@ -77,6 +77,7 @@ public partial class FPlayer : MonoBehaviour
if (data.PlayerID == GameModel.RoleID)
{
Fishing.Inst.Player.SelfPlayer = this;
var mainSync = gameObject.AddComponent<FPlayerMainSync>();
BaseCamera.Main.transform.SetParent(CameraRoot);
BaseCamera.Main.transform.localPosition = Vector3.zero;
}