示例#1
0
    public void OnObjectFound(SelectableObjectPack foundObject)
    {
        OnObjectFoundEvent.Invoke(foundObject);
        objectsFound++;

        if (objectsFound >= currentObjectsList.objectsList.Count)
        {
            OnAllObjectsFoundEvent.Invoke();
        }
    }
    public void RemoveObject(SelectableObjectPack objectPack)
    {
        LabelListController labelListController = listReferences.Find(x => x.objectId == objectPack.id);

        if (labelListController != null)
        {
            listReferences.Remove(labelListController);
            Debug.Log("Trying to mark the flag");
            labelListController.ShowLabelFinishedFeedback();
        }
    }