Beispiel #1
0
    internal void DeactivateProcess(ProcessData dataTEMP)
    {
        Process process = GetActiveProcessByDataIfActive(dataTEMP);

        if (process != null)
        {
            ActiveProcesses.Remove(process);
        }
    }
Beispiel #2
0
    private void ClearConsumeablesFromInput()
    {
        UseableEntity[] toRemove = Data.GetToRemove(inputEntities);

        foreach (UseableEntity remove in toRemove)
        {
            inputEntities.Remove(remove);
        }
    }
Beispiel #3
0
    public override void OnEndDrag(PointerEventData eventData)
    {
        if (!isInDrag)
        {
            return;
        }

        Debug.LogWarning("END DRAG ON " + gameObject.name);

        base.OnEndDrag(eventData);
        if (TryDrop(eventData.pointerCurrentRaycast.gameObject))
        {
            List.Remove(Source);
        }
    }