using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class ButtonMouseOverCanvas : ButtonMouseOver
{
[SerializeField]
private Canvas targetCanvas;
private void Start()
{
targetCanvas.enabled = false;
}
public override void OnPointerClick(PointerEventData eventData)
{
base.OnPointerClick(eventData);
targetCanvas.enabled = base.toggle;
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.