修改FPS控制
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user