19 lines
334 B
C#
19 lines
334 B
C#
|
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;
|
||
|
}
|
||
|
}
|