I have problem.
I want to do that the player after entering the collider could turn on the canvas with the e button.
Sry for my bad english
Here is script:
using UnityEngine;
using System.Collections;
public class Paper : MonoBehaviour
{
public GameObject paper;
private bool isShowing;
private void OnTriggerEnter(Collider other)
{
if (Input.GetKeyDown("e"))
{
isShowing = !isShowing;
paper.SetActive(isShowing);
}
}
}