This changes the camer to empty points, is there a way just to assign the transform pos by current cam
instead of just constant if statments. Thank you
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraPlacement : MonoBehaviour
{
public Transform pos0,pos1,pos2;
public int cameraPos = 0;
public string currentCam = ("");
public void FixedUpdate()
{
currentCam = cameraPos.ToString();
if(cameraPos == 0)
{
transform.position = pos0.transform.position;
}
if (cameraPos == 1)
{
transform.position = pos1.transform.position;
}
if (cameraPos == 2)
{
transform.position = pos2.transform.position;
}
}
}