rabidus-test/Assets/CamDisplayIdentifier.cs

19 lines
322 B
C#
Raw Permalink Normal View History

2023-10-09 15:12:08 +03:00
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;
}
}