日前遇到些运行时场景树中未按预期销毁的GameObject需要打印出场景树结构做前后比较,所以写个这个简单的函数publicstaticvoidExchangeHierarchy2XmlNode(TransformtransParant,System.Xml.XmlNodenode,System.Xml.XmlDocumentdoc){intindexCount=transParant.transform.childC..
分类:
其他好文 时间:
2015-03-03 19:02:21
阅读次数:
143
using System;using System.Collections.Generic;namespace Algorithms{ public class PermutationAndCombination { /// /// 交换两个变量 /// /// 变量1 /// 变量2 publ.....
启动EXE string arg1 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; string arg2 = "bbbbbbbbbbbbbbbbbbbbbbbbbbbbb"; System.Diagnostic...
前言:大家现在开发使用的Android 模拟器模拟的是 ARM 的体系结构(arm-eabi),因此模拟器并不是运行在x86上而是模拟的ARM,所以我们调试程序的时候经常感觉到非常慢,大部分开发者应该都深有体会。针对这种情况,前段时间Intel推出了支持x86的Android模拟器,这将大大提高启动...
分类:
移动开发 时间:
2015-03-03 16:32:17
阅读次数:
184
System.out.println("当前时间:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())); Calendar first = Calendar.getInstance(); Calend...
分类:
其他好文 时间:
2015-03-03 16:31:55
阅读次数:
143
【狗刨学习网】
using UnityEngine;
using System.Collections;
public class Chat : MonoBehaviour {
bool usingChat = false;
bool showChat = false;
string inputField = "";
Vector2 scr...
分类:
编程语言 时间:
2015-03-03 15:14:46
阅读次数:
438
使用BootStrap,如果一个Div只占用了一小部分,怎么居中呢?
BootStrap3.3.2测试
.col-center-block {
float: none;
display: block;
margin-left: auto;
margin-right: auto;
}
请登录
...
分类:
其他好文 时间:
2015-03-03 15:14:19
阅读次数:
116
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Sy...
package mode.single;
public class Single {
private static Single single;
private Single() {
}
public static Single getInstance() {
if (null == single) {
System.out.println("第一次创建");
sin...
分类:
其他好文 时间:
2015-03-03 13:43:47
阅读次数:
114