public T Clone <T>() where T : Entity { var obj = Reflector.Clone <T>((T)this); obj.Version = 0; return(obj); }
public void ExecuteScript() { var ent = GetSelectedEntity(); if (ent != null) { var instance = Reflector.Clone(_script.BehaviorTree); _engine.ExecuteScript(instance, ent); entityComboBox.Enabled = false; executeTSButton.Enabled = false; } }