示例#1
0
        public T Clone <T>() where T : Entity
        {
            var obj = Reflector.Clone <T>((T)this);

            obj.Version = 0;
            return(obj);
        }
示例#2
0
        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;
            }
        }