public override void ExecuteAction(System.Action onFinish) { UIManager.Instance.DialogueView.ShowText(_text, () => { if (_closeDialogueOnFinish) { UIManager.Instance.DialogueView.Hide(); } if (ChildAction != null) { ChildAction.ExecuteAction(); } }); }
// ----------------------------------------------------------------------------------- // UCE_checkAttachmentConditions // @Server // ----------------------------------------------------------------------------------- protected bool UCE_checkAttachmentConditions(int index, ChildAction action) { foreach (UCE_AttachmentChildCondition condi in attachedChilds[index].childConditions) { if (condi.childAction == action) { if ( (condi.activeBuff == null || UCE_checkHasBuff(condi.activeBuff)) && (condi.equippedItem == null || UCE_checkHasEquipment(condi.equippedItem)) && (condi.inventoryItem == null || UCE_checkHasItem(condi.inventoryItem)) && ( (condi.parentThreshold == ParentThreshold.Above && (health >= healthMax * condi.parentHealth)) || (condi.parentThreshold == ParentThreshold.Below && (health < healthMax * condi.parentHealth))) ) { return(true); } } } return(false); }
static void Main(string[] args) { Employee e = new Employee() { Email = "*****@*****.**" }; EmployeeAction employeeAction = new EmployeeAction(); ChildAction childAction = new ChildAction(); var updatedEmployee1 = childAction.AssignUniqueId(employeeAction.AddEmployee, e); // get Id from child project var updatedEmployee2 = childAction.AssignUniqueIdFunc(employeeAction.AddEmployee, e); // get Id from child project Console.WriteLine(updatedEmployee1); Console.WriteLine(updatedEmployee2); Console.WriteLine("Hello World!"); Func <int> x = new Func <int>(Add); Console.WriteLine(x()); Console.ReadLine(); }