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

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

        foreach (UseableEntity remove in toRemove)
        {
            inputEntities.Remove(remove);
        }
    }
示例#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);
        }
    }