上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 73 下一页
摘要: 如何定位背景图像: body { background-image:url('bgimage.gif'); background-repeat:no-repeat; background-attachment:fixed; background-position:center; }要注意一下不同浏览 阅读全文
posted @ 2020-04-11 16:19 Tomorrow1126 阅读(168) 评论(0) 推荐(0) 编辑
摘要: * {margin:0; padding:0;} *{margin: 0; padding: 0}的作用 *{margin: 0; padding: 0}作用是Reset(重置)浏览器默认样式,对于各浏览器样式统一的话有着简单粗暴的效果。这东西叫“通配符”用来匹配页面上所有元素。 *{margin: 阅读全文
posted @ 2020-04-11 15:15 Tomorrow1126 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cmath> #include<vector> #include<cstring> using namespace std; int main() { int n; cin>>n; int a[40]; long long num=(long 阅读全文
posted @ 2020-04-08 23:56 Tomorrow1126 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 笔记见平板 #include<iostream> #include<algorithm> #include<cmath> #include<vector> using namespace std; vector<string>v; vector<string>::iterator it; int m 阅读全文
posted @ 2020-04-07 18:05 Tomorrow1126 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 交叉熵(Cross-Entropy) 交叉熵是一个在ML领域经常会被提到的名词。在这篇文章里将对这个概念进行详细的分析。 1.什么是信息量? 假设X的信息量为:I(x0)=−log(p(x0))时,熵将等于0,也就是说该事件的发生不会导致任何信息量的增加。举个例子,小明平时不爱学习,考试经常不及格, 阅读全文
posted @ 2020-03-31 13:50 Tomorrow1126 阅读(208) 评论(0) 推荐(0) 编辑
摘要: public float speed = 3; public float angleval = 15; 注意要加上public才能在unity中输入调整。 1、用鼠标控制物体旋转(下面是,鼠标右键控制物体沿着y轴正方向旋转,顺时针) float angleval = 15; void Start() 阅读全文
posted @ 2020-03-30 10:56 Tomorrow1126 阅读(184) 评论(0) 推荐(0) 编辑
摘要: float speed = 3; void Start() { } // Update is called once per frame void Update() { Move(); } private void Move() { if (Input.GetKey(KeyCode.W)) { tr 阅读全文
posted @ 2020-03-29 14:38 Tomorrow1126 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 生命周期函数:需要继承 MonoBehaviour 类才能使用。生命周期函数全部都是由系统定义好的,系统会自动调用,且调用顺序和我们在代码里面的书写顺序无关。 常用的生命周期函数: Awake():唤醒事件,游戏一开始运行就执行,只执行一次。 OnEnable():启用事件,只执行一次。当脚本组件被 阅读全文
posted @ 2020-03-29 14:24 Tomorrow1126 阅读(507) 评论(0) 推荐(0) 编辑
摘要: Move To View:移动游戏对象到视图的中心点。 Align With View:移动游戏对象与视图对齐,将选择的对象自动移动到当前视图并以当前视图为中心进行对齐 Align View To Select:移动视图与游戏对象对齐,将当前视图对齐到选择的对象,并以游戏对象中心为准进行对齐http 阅读全文
posted @ 2020-03-29 14:08 Tomorrow1126 阅读(100) 评论(0) 推荐(0) 编辑
摘要: void Update() { float h=Input.GetAxis("Horizontal")*speed*Time.deltaTime; float v=Input.GetAxis("Vertical")*speed*Time.deltaTime; transform.Translate( 阅读全文
posted @ 2020-03-29 14:05 Tomorrow1126 阅读(159) 评论(0) 推荐(0) 编辑
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 73 下一页