bugs fix
fix ipc touch not working bug; fix player height text not updating bug
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
[RequireComponent(typeof(Camera))]
|
||||
public class CameraSmooth : MonoBehaviour {
|
||||
|
||||
public Transform target;
|
||||
public float smoothSpeed = 0.05f;
|
||||
public int FPS = 60;
|
||||
private void Start()
|
||||
{
|
||||
QualitySettings.vSyncCount = 0;
|
||||
Application.targetFrameRate = FPS;
|
||||
}
|
||||
void Update ()
|
||||
{
|
||||
if (target == null) return;
|
||||
transform.position = Vector3.Lerp(transform.position, target.position, smoothSpeed);
|
||||
transform.rotation = Quaternion.Lerp(transform.rotation, target.rotation, smoothSpeed);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e44f24d571d0baa46bacf3d93aca3592
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user