• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
白染
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 6 下一页
2018年9月8日
小球跳跃游戏
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class SphereControll : MonoBehaviour { bool b = false; public float sphereSpeed=10... 阅读全文
posted @ 2018-09-08 15:03 白染 阅读(313) 评论(0) 推荐(0)
UI界面之淡入淡出
摘要: 2. 3. 阅读全文
posted @ 2018-09-08 14:59 白染 阅读(187) 评论(0) 推荐(0)
iTween
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class ItweenText : MonoBehaviour { public GameObject obj; float time = 0; public iTween.EaseType typ... 阅读全文
posted @ 2018-09-08 14:55 白染 阅读(260) 评论(0) 推荐(0)
编写脚本,开始场景有两个球体,两者之间距离为10,当距离大于10时,两个球相向运动,两个球接触后反向运动,反复运动
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class fanfuyundong09 : MonoBehaviour { public GameObject sphere;//定义另一个球 GameObject obj; float speed... 阅读全文
posted @ 2018-09-08 14:52 白染 阅读(289) 评论(0) 推荐(0)
点击地面时,若鼠标点击的偶数次使得Cube向点击点移动,并且点击奇数次Cube变色
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class ray10 : MonoBehaviour { int num = 0; Vector3 vec; GameObject obj; bool b = false; Colo... 阅读全文
posted @ 2018-09-08 14:48 白染 阅读(302) 评论(0) 推荐(0)
消消乐——三消
摘要: 此代码还有点问题,如果点击的两个cube相隔两个以外,game界面会卡死,,,,等我修改后再来更新 阅读全文
posted @ 2018-09-08 14:46 白染 阅读(399) 评论(0) 推荐(0)
2018年8月25日
unity之让obj旋转自转等操作
摘要: 1.让cube沿着矩形四个点运动 2.cube之按键操作 3.射线检测 4.cube岁鼠标移动 5. 6. 7. 8. 9. 10. 阅读全文
posted @ 2018-08-25 15:25 白染 阅读(2511) 评论(0) 推荐(0)
unity之UI
摘要: 1.Vector3坐标 2.地球,月球,太阳的旋转关系 3.UI之游戏界面 登录错误提示: 提示登录失败用: if (this.gameObject.activeSelf) { time += Time.deltaTime;//计时器 if (time > 3) { failText.gameObj 阅读全文
posted @ 2018-08-25 15:25 白染 阅读(286) 评论(0) 推荐(0)
2018年8月17日
c#之字符串,列表,接口,队列,栈,多态
摘要: 1.字符串的用法 2.列表 2.装箱,拆箱 3. 4.ArrayList 5.键值对 6. 简体繁体对应 7.字典 8.队列 9.栈 10.多态 11.抽象类 12.接口 阅读全文
posted @ 2018-08-17 17:56 白染 阅读(1604) 评论(0) 推荐(0)
c#之函数
摘要: 1.函数 2. 函数的重载构成重载的条件:1.方法名必须一样,参数列表不同(参数类型不同,参数个数不同)2.与返回值无关 3.函数的递归 4.try.pase 5.面向对象 6. 字符串 7.继承 例子: 继承随机生成: 7.里式转换 阅读全文
posted @ 2018-08-17 09:58 白染 阅读(3508) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3