public static string timeStampToString(int time)
{
long ltime = (long )time;
DateTime t = new DateTime(time * TimeSpan.TicksPerSecond);
t = t. ToLocalTime();
int year = t.Year + 1969 ;
string syear = "" + year;
int month = t.Month ;
string smonth = month < 10……继续阅读 »
sharezer
8年前 (2016-04-27) 2013浏览 0评论
0个赞
假设有一个怪物类Monster,Monster中包含跑、跳、走、爬等属性。
定义:
static const int a = 1; //跑 1
static const int b = 1 << 1; //跳 10
static const int c = 1 << 2; //走 100
static const int ……继续阅读 »
sharezer
8年前 (2016-04-27) 1909浏览 0评论
0个赞
配置文件:battleRes.json
{
"png": [
"sprite/heroSpecialEffect1.png",
"sprite/heroSpecialEffect2.png",
"sprite/planeLine.png",
"sprite/sky_bg.png",
"sprite/superReward1.png",
"sprite/superReward2.png",
……继续阅读 »
sharezer
8年前 (2016-04-27) 2415浏览 0评论
0个赞
不少公司的网管试图解决双网卡问题,下面我就给大家详细的讲解一下双网卡同时使用的方法,这样即可保障内网的安全,又能解决电脑访问外网的问题,一举两得。希望大家喜欢。
首先你的机器需要有两块网卡,分别接到两台交换机上,
internet地址:192.168.1.8,子网掩码:255.255.255.0,网关:192.168.1.1
内部网地址:172.23.1.8,子网掩码:255.255.255.0,网关:172.23.1.1
如果按正常的设置方法设置每块网卡的ip地址和网关,再cmd下使用route print查……继续阅读 »
sharezer
8年前 (2016-04-27) 2202浏览 0评论
0个赞
public void Update()
{
if (Input.GetMouseButton(0))
{
Vector3 pos = UICamera.currentCamera.ScreenToWorldPoint(Input.mousePosition);
test.transform.position = pos;
}
}
……继续阅读 »
sharezer
8年前 (2016-04-08) 3478浏览 2评论
0个赞
1、在你自己的头文件中加入#include ”extensions/cocos-ext.h”
2、使用命名空间USING_NS_CC_EXT;
3、选中工程右键“属性”->”配置属性“->”c/c++”->”常规”->”附加包含目录”中添加
$(EngineRoot)
$(EngineRoot)cocos
$(EngineRoot)cocos\editor-support
……继续阅读 »
sharezer
8年前 (2016-04-08) 2471浏览 0评论
0个赞
NGUI官网示例–讲解:http://game.ceeger.com/forum/read.php?tid=4172;fpage=2
NGUI官网示例2-interaction-讲解(一)http://game.ceeger.com/forum/read.php?tid=4179
NGUI官网示例2-interaction-讲解(二)http://game.ceeger.com/forum/read.php?tid=4180
NGUI官网示例3–Menu讲解http://game.ceeger.com/forum/read.php?tid=4187
NGUI官方实例—ControlIe……继续阅读 »
sharezer
8年前 (2016-04-08) 11735浏览 2评论
1个赞