add 1st person smooth and skybox on-off setting

This commit is contained in:
xpeng
2022-07-29 20:18:13 +02:00
parent 593fe01d13
commit 19407e0da2
4 changed files with 158 additions and 30 deletions
@@ -9,6 +9,7 @@ public class PanelThirdPersonButton : MonoBehaviour
private Renderer cr;
public GameObject tpCamera;
public GameObject fpsCamera;
public AudioSource audioSrc;
void Start()
@@ -31,6 +32,7 @@ public class PanelThirdPersonButton : MonoBehaviour
isTP = state;
cr.material.color = state ? Color.green : Color.red;
tpCamera?.SetActive(state);
fpsCamera?.SetActive(!state);
JsonConfiguration.SetBoolean("ThirdPerson", state);
}