Skip to content
Snippets Groups Projects
Remover.cs 455 B
Newer Older
  • Learn to ignore specific revisions
  • using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using static CommunicationEvents;
    
    public class Remover : Gadget
    {
    
        /// \copydoc Gadget.s_type
        [Newtonsoft.Json.JsonProperty]
        protected static new string s_type = "Remover";
    
    
        public override void _Hit(RaycastHit hit)
    
            var hid = hit.transform.GetComponent<FactObject>()?.URI;
    
            StageStatic.stage.factState.Remove(hid, false, this);