自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 Unity2D入门6 下蹲

完整代码 bool checkHit() { Vector2 origin1, origin2; bool standUps = true; origin1 = transform.position + new Vector3(-0.25f, -0.25f); origin2 = transform.position ...

2020-03-15 05:11:50 1047 1

原创 Unity2D入门5 爬梯子

完整代码 public float climbspeed = 2f; private bool inLadder; public Collider2D platf; private void OnTriggerStay2D(Collider2D collision) { if (collision.tag == "Player") ...

2020-03-14 02:16:38 4245

原创 Unity2D入门4 简单物品收集

private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == "Collection") { Destroy(collision.gameObject); } }

2020-03-14 02:10:27 686

原创 Unity2D入门3 简单镜头移动

简单镜头移动 public Transform player; void Update() { transform.position = new Vector3(player.position.x, player.position.y, -10f); } 给main camera添加new script与player连接。 ...

2020-03-10 17:39:11 636

原创 Unity2D入门2 public和private

private Rigidbody2D rb; private Animator Anim; void Start() { rb = GetComponent<Rigidbody2D>(); Anim = GetComponent<Animator>(); } 私有在unity界面不显示,通...

2020-03-10 01:16:00 564

原创 c#入门笔记1,2020.3.4

数据类型 整形 int 32bit long 64bit 浮点型 float 32bit double 64bit decimal 128bit 字符串 char ’ ’ string " " 转义字符 \n 换行 \t tab \ 斜杠 " 双引号 @" " 使句中转义符失效 字面值 整形为int,浮点型为double 隐式类型var var sb = 1; sb会自适应为int型; ...

2020-03-04 17:53:29 228

原创 Unity2D入门1 简单角色移动与动画 基础

初级角色移动完整代码 using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerControl : MonoBehaviour { public Rigidbody2D rb; public Animator Anim; public ...

2020-03-02 18:24:46 1664

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除