Spectating
This commit is contained in:
@@ -5,7 +5,7 @@ using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
//script from FREAKINGREX, but minor changes to integrate it proberly
|
||||
//script from FREAKINGREX, but changes to integrate it proberly/ work how we want it to work
|
||||
//https://assetstore.unity.com/packages/templates/systems/arcade-car-controller-lite-version-145489
|
||||
|
||||
public class CameraControl :MonoBehaviour
|
||||
@@ -68,6 +68,7 @@ public class CameraControl :MonoBehaviour
|
||||
|
||||
transform.position = Vector3.LerpUnclamped (transform.position, TargetPoint, Time.deltaTime * ActivePreset.SetPositionSpeed);
|
||||
|
||||
|
||||
if (Input.GetKeyDown (SetCameraKey))
|
||||
{
|
||||
SetNextCamera ();
|
||||
@@ -111,6 +112,7 @@ public class CameraControl :MonoBehaviour
|
||||
|
||||
public void UpdateActiveCamera ()
|
||||
{
|
||||
|
||||
if (ActivePreset != null)
|
||||
{
|
||||
ActivePreset.CameraHolder.SetActive(false);
|
||||
|
||||
Reference in New Issue
Block a user