示例#1
0
        public void MakeNewObjectUnique(DataTypes.ArrowElementSave container, object newObject)
        {
            string name = LateBinder.GetValueStatic(newObject, "Name") as string;

            List <string> allNames = new List <string>();

            foreach (var item in container.AllInstances)
            {
                if (item != newObject)
                {
                    allNames.Add(LateBinder.GetValueStatic(item, "Name") as string);
                }
            }

            name = StringFunctions.MakeStringUnique(name, allNames);

            LateBinder.SetValueStatic(newObject, "Name", name);
        }
示例#2
0
 private void HandlePositionSet(float newPosition)
 {
     LateBinder.SetValueStatic(Caller, MemberToSet, newPosition);
 }