首页
编程
励志
笔记
文摘
工具
福利
实用网址
|
图片欣赏
相机跟随及震动【unity2d】
usingSystem.Collections;usingUnityEngine;publicclassCameraController:MonoBehaviour{privateTransformtarget;[Header("SmoothSpeedandClampsize")][Serializ... ...
相信神话
发布于
2020-04-15
419
419
0
0
3390
JSON转换类[c#基础类]
usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Data;usingSystem.Reflection;usingSystem.Collections;usingSystem.Data.Common;n... ...
相信神话
发布于
2020-04-15
179
179
0
0
2975
JavaScript客户端脚本输出帮助类[c#基础类]
usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;namespaceHD.Helper.Common{///<summary>///JavaScript客户端脚本输出帮助类///</summary&g... ...
相信神话
发布于
2020-04-14
18
18
0
0
2915
URL的操作类[c#基础类]
usingSystem;usingSystem.Text.RegularExpressions;usingSystem.Web;usingSystem.Collections.Specialized;namespaceUtilities{///<summary>///URL的操作类///... ...
相信神话
发布于
2020-04-14
0
0
0
0
2948
JavaScript客户端脚本输出帮助类[c#基础类]
usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;namespaceHD.Helper.Common{///<summary>///JavaScript客户端脚本输出帮助类///</summary&g... ...
相信神话
发布于
2020-04-09
0
0
0
0
3206
Html操作相关类[c#基础类]
usingSystem;usingSystem.Text;usingSystem.Net;usingSystem.IO;usingSystem.Threading;usingSystem.Text.RegularExpressions;usingSystem.Web;namespaceHD.Help... ...
相信神话
发布于
2020-04-08
0
0
0
0
3102
时间戳[c#基础类]
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceCommon.Utility.时间戳{publicclassTimeHelper{///<summary>///时... ...
相信神话
发布于
2020-04-07
0
0
0
0
3345
阿里云中直播 分为:推流,拉流,录制[c#基础类]
usingSystem;usingSystem.Collections.Generic;usingSystem.Configuration;usingSystem.Linq;usingSystem.Text;namespaceCommon.Utility.Aliyun.Live{/*阿里云中直播分为... ...
相信神话
发布于
2020-04-02
0
0
0
0
3593
什么最贵?40岁人的忠告
导语 此文是作者在42岁那天,写的一篇感言:什么最贵? <em>1.</em>人生最缺的是自由时间,总以为来日方长,其实每一天都在向这个世界做告别。人因为忌讳死亡,所以也失去了很多思考生命的机会。<em>2.</em>前几日有个同事在朋友圈称呼自己的孩子是「吞时兽」,我大为不解,说「不是吞金兽吗?... ...
相信神话
发布于
2020-04-01
0
0
0
0
3597
QueryString 地址栏参数[c#基础类]
usingSystem.Web;usingSystem.Text.RegularExpressions;namespaceUtilities{///<summary>///QueryString地址栏参数///</summary>publicclassQueryString{... ...
相信神话
发布于
2020-04-01
0
0
0
0
3457
操作正则表达式的公共类[c#基础操作]
usingSystem.Text.RegularExpressions;namespaceCommon.Utility{///<summary>///操作正则表达式的公共类///</summary>publicclassRegexHelper{#region验证输入字符串是否... ...
相信神话
发布于
2020-03-31
12
13
0
0
3090
字符串操作类[c#]
usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Text.RegularExpressions;namespaceCommon.Utility{///<summary>///字符串操作类//... ...
相信神话
发布于
2020-03-30
23
23
0
0
3019
Unity 游戏基本知识笔记[unity2d]
延时运行函数Invoke("函数名",1.5f);//1.5秒后运行该函数屏幕坐标转化为世界坐标Vector3WorldPos=Camera.main.ScreenToWorldPoint(ScreenPos);//参数是屏幕坐标世界坐标转化为屏幕坐标Vector3ScreenPos=Camera.... ...
相信神话
发布于
2020-03-17
24
24
0
0
3166
2D游戏中的定位跟踪【unity2d】
游戏中有时候我们需要对主角的位置进行判断获取,并由此知道两个点之间的方位和距离。距离可以利用公式得到,但是方位利用简单的欧拉角和四元数的转换无法简单获取,这里我利用游戏开发中的实践经验和大家分享一下这个角度的获取。如图,B需要知道A对B的角度,所以在已知A和B的Transform的Position下... ...
相信神话
发布于
2020-03-13
24
24
0
0
3894
简易2D人物移动[unity2d]
usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;publicclassplayer1:MonoBehaviour{///<summary>///人物速度///</summary>... ...
相信神话
发布于
2020-03-10
25
25
0
0
3043
武器跟随旋转及对称[unity2d]
武器跟随旋转及对称usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;publicclassWeapon:MonoBehaviour{privatevoidFixedUpdate(){//获取鼠标坐标并转... ...
相信神话
发布于
2020-03-10
25
26
0
0
3134
什么是欧拉角?
什么是欧拉角?用一句话说,欧拉角就是物体绕坐标系三个坐标轴(x,y,z轴)的旋转角度。在这里,坐标系可以是世界坐标系,也可以是物体坐标系,旋转顺序也是任意的,可以是xyz,xzy,yxz,zxy,yzx,zyx中的任何一种,甚至可以是xyx,xyy,xzz,zxz等等等等。。。。。。所以说欧拉角多种... ...
相信神话
发布于
2020-03-10
25
25
0
0
3962
Unity 2D游戏自学笔记--角色移动方法【unity2d】
方法一 gameObject.transform.Translate(Time.deltaTime*Speed,0,0);//右移,其中Speed为float类型变量,后两个参数分别是竖直方向和图层前后方向GameObject.Find("player").transform.Translate(... ...
相信神话
发布于
2020-03-10
25
25
0
0
3899
武器随鼠标指向转动[Unity2d]
voidUpdate() { //旋转武器 varmousePos=Camera.main.ScreenToWorldPoint(Input.mousePosition);//获取鼠标位置 mousePos.z=gunTransform.position.z;//使鼠标Z坐标和抢的坐标相同,用... ...
相信神话
发布于
2020-03-10
25
25
0
0
3509
角色跳跃墙方向键停止问题【unity2d】
实际运行时物理材质属性是无法改变的,但可以新建两个物理材质,一个摩擦力friction为正常的,另一个为friction=0,运行时再用代码改变 privateRigidbody2Drg;publicPhysicsMaterial2Dp1;//有摩擦力的publicPhysicsMaterial2... ...
相信神话
发布于
2020-03-10
25
25
0
0
3410
首页
上一页
1
2
3
4
5
6
7
8
...
下一页
末页
热门标签
编成
笔记
励志
文摘
故事
猜你喜欢
由一位同事的跳槽想到的
JS中的逻辑运算符&&、||,位运算符|,&
将军与上校
指定颜色[createjs]
IP共用工具类[c#基础类]
白驹飞驰,青春过隙
HTML5+ - IO模块 (本地文件系统)基础篇
沟通的艺术(六)
求职面试的34个重要提示
我们都曾畏惧告别
生活
励志
执行力,才是拉开人与人差距的关键
IIS中设置MIME类型以显示字体样式
你们都不知道我们领导每天有多辛苦,骂人都骂出咽炎了。
创业合作经营模式
中国老规矩
原生JS,通过IntersectionObserver内置构造函数实现图片懒加载效果()
爱人之心
成年人交往准则,送给正在恋爱的男男女女们。
快乐在哪里
像少年一样无赖,想中年一样去爱
生活
笔记
10张图帮你提升工作能力
王小川:创业必须创新 在“找死”中求生
读书看一本忘一本,问题出在哪儿?
生活
文摘
如何炸出完美薯条
一个成熟的网站需要具备那些细节
沟通的艺术(五)
沟通的艺术(八)
沟通的艺术(七)
兔子吃狼的故事,看了就知道其中很深的哲理
沟通的艺术(十二)
【高手】手把手教你绘制树脂中国龙
不想努力时该做什么?
《沟通的艺术》序言
生活
工具
云端应用网站
文字云的工具--生成文字图片
可视化地理图表生成器(Pixel Map Generator)
生活
福利
你电脑上「最引以为豪」的软件是什么?
(10+2)x5把你从惰性中拯救出来
推荐收藏:那些值得一看的趣味/实用网站合集
在GitHub上读大学:涵盖清华,北大,浙大等大学课程
教你制作手工八音盒旋转木马,送女票送亲友
耐玩的塔防游戏yorg.io(网页版)
打卡、清单、备忘 APP 用了无数个,我只留下了这 3 个!
生活
编程
首页
励志
笔记
文章
工具
福利
图片欣赏
手机版
网站导航
版权所有 © goodlife.cn All Rights Reserved,
冀ICP备:15016661号