Select Git revision
Pointer.cs 609 B
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using static CommunicationEvents;
public class Pointer : Gadget
{
/// \copydoc Gadget.s_type
[Newtonsoft.Json.JsonProperty]
protected static new string s_type = "Pointer";
public override void _Hit(RaycastHit hit)
{
string pid = FactManager.AddPointFact(hit).Id;
if (hit.transform.gameObject.layer == LayerMask.NameToLayer("Ray"))
FactManager.AddOnLineFact
( pid
, hit.transform.GetComponent<FactObject>().URI
, true );
}
}