rabidus-test/Assets/CamDisplayIdentifier.cs

19 lines
322 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CamDisplayIdentifier : DisplayIdentifier
{
private Camera cam;
private void Awake()
{
cam = GetComponent<Camera>();
}
public override void SetId(int id)
{
cam.targetDisplay = id;
}
}