rabidus-test/Assets/CanvasDispalyIdentifier.cs

19 lines
334 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 CanvasDispalyIdentifier : DisplayIdentifier
{
private Canvas canvas;
private void Awake()
{
canvas = GetComponent<Canvas>();
}
public override void SetId(int id)
{
canvas.targetDisplay = id;
}
}