Newer
Older
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using static CommunicationEvents;
public class Pointer : Gadget
{
this.UiName = "Point Mode";
if (MaxRange == 0)
MaxRange = GlobalBehaviour.GadgetLaserDistance;
Stefan Richter
committed
//Debug.Log("pointer1");
Stefan Richter
committed
if (!GadgetCanBeUsed) return;
Stefan Richter
committed
Stefan Richter
committed
Marco Zimmer
committed
var pid = FactManager.AddPointFact(hit).Id;
Marco Zimmer
committed
if (hit.transform.gameObject.layer == LayerMask.NameToLayer("Ray"))
{
FactManager.AddOnLineFact(pid, hit.transform.GetComponent<FactObject>().URI, true);