编程心语

u3d接口回调的方式

在u3d开发中,如果想传递一个接口道另一个脚本中回调,需要传递当前脚本绑定的游戏对象 比如 1 this.gameObject; 在接收接口的脚本中,获取接口的方法如下 1 Interface myInterface = (Interface)

3014考古重大发现(搞笑)

网络传播的,来源没找到,转发过来。 3014年,考古现场内,人头攒动,工作人员小心地刨去旧土,正在进行紧张的补救处理。 陈教授认为,301号墓室

如何在cocos2dx中获取系统的年、月、日

In order to get the current date,time,we can use 2 methods-either using the localtime of the desktop or using GMT(GREENWICH MEAN TIME) //USING THE LOCAL TIME time_t time; struct tm * timeinfo; time (&time); timeinfo = localtime (&time); CCLog("year->%d",timeinfo->tm_year+1900); CCLog("month->%d",timeinfo->tm_mon+1); CCLog("date->%d",timeinfo->tm_mday); CCLog("hour->%d",timeinfo->tm_hour); CCLog("minutes->%d",timeinfo->tm_min); CCLog("seconds->%d",timeinfo->tm_sec); //USIMG GMT Replace the above line timeinfo = localtime (&time);withtimeinfo =gmtime (&time); and since that gmtime is 5 hours 30 min. less than the India time,we