using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FlashLight : MonoBehaviour
{
// Update is called once per frame
void Update()
{
if (Input.GetButtonDown(“RightClick”))
{
if (GetComponent() == false)
{
GetComponent() == true;
}
if (GetComponent() == true)
{
GetComponent() == false;
}
}
}
}