Skip to content
Snippets Groups Projects
Select Git revision
  • d29ce04dce78d3dc9d810c27143ff5e995a3381e
  • master default
  • JS-based-scroll-rendering
  • Paul_Marius_Level
  • Paul_Marius_2
  • Paul_Marius
  • Andi_Mark
  • be-UnityWebView
  • gitignoreFrameitServer
  • ZimmerBSc
  • Bugfix_StageLoading
  • stages
  • MAZIFAU_Experimental
  • tsc/coneworld
  • tsc/fact-interaction
  • marcel
  • MaZiFAU_TopSort
  • mergeHelper
  • zwischenSpeichern
  • tempAndrToMaster
  • SebBranch
  • 3.0
  • v2.1
  • v2.0
  • v1.0
25 results

CommunicationEvents.cs.meta

Blame
  • Remover.cs 666 B
    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)
        {
            // It's probably better to keep this only on the first hit and not multiple hits
            string hid = hit[0].transform.GetComponent<FactObject>()?.URI;
            if (hid == null) return;
    
            Workflow.Add(hid);
            StageStatic.stage.factState.Remove(Workflow[0], samestep: false, gadget: this);
    
    
            ResetGadget();
    
        }
    }