Beispiel #1
0
        private static void SetAvatarDestroyParent(UMADynamicAvatar avatar, bool destroyParent)
        {
            var umaEditorAvatarType = GetUMAEditorAvatarType();
            var umaEditorAvatar     = avatar.GetComponentInChildren(umaEditorAvatarType);

            umaEditorAvatarType.GetField("destroyParent").SetValue(umaEditorAvatar, destroyParent);
        }
Beispiel #2
0
        private static void SetAvatarDestroyParent(UMADynamicAvatar avatar, bool destroyParent)
        {
            var umaEditorAvatarType = typeof(UMAAvatarBase).Assembly.GetType("UMA.PowerTools.UMAEditorAvatar");
            var umaEditorAvatar     = avatar.GetComponentInChildren(umaEditorAvatarType);

            umaEditorAvatarType.GetField("destroyParent").SetValue(umaEditorAvatar, destroyParent);
        }
		private static void SetAvatarDestroyParent(UMADynamicAvatar avatar, bool destroyParent)
		{
			var umaEditorAvatarType = GetUMAEditorAvatarType();
			var umaEditorAvatar = avatar.GetComponentInChildren(umaEditorAvatarType);
			umaEditorAvatarType.GetField("destroyParent").SetValue(umaEditorAvatar, destroyParent);
		}
 private static void SetAvatarDestroyParent(UMADynamicAvatar avatar, bool destroyParent)
 {
     var umaEditorAvatarType = typeof(UMAAvatarBase).Assembly.GetType("UMA.PowerTools.UMAEditorAvatar");
     var umaEditorAvatar = avatar.GetComponentInChildren(umaEditorAvatarType);
     umaEditorAvatarType.GetField("destroyParent").SetValue(umaEditorAvatar, destroyParent);
 }