예제 #1
0
        private void OnFlowchartExceptionCaught(FlowchartException exception)
        {
            WorkspaceElement exceptionElement = AllActiveElements.Find(x => x.InnerElement == exception.Element);

            if (!ActiveErrorSigns.ContainsKey(exceptionElement))
            {
                ErrorSign sign = ErrorSign.CreateSign(exceptionElement.transform.position, transform, exception.Message);
                ActiveErrorSigns.Add(exceptionElement, sign);
                sign.button.onClick.AddListener(() => { ActiveErrorSigns.Remove(exceptionElement); });
            }

            Debug.LogError("Flowchart exception was caught - " + exception.Message, exceptionElement);
        }
예제 #2
0
 public void RemoveElement(WorkspaceElement element)
 {
     AllActiveElements.Remove(element);
 }
예제 #3
0
 public void AddElement(WorkspaceElement element)
 {
     AllActiveElements.Add(element);
 }