1.Falling U (翻自 T-ara) ---琳琳/忆晞
2.絆 ---Nightcore.Shiro
1.Falling U (翻自 T-ara) ---琳琳/忆晞
2.絆 ---Nightcore.Shiro
创建UI必须有Canvas,UI必须放在Canvas下。
Pixels Per Unit 100→64
切割图片:
选中
Sprite Mode→Multiple
2d Object-Tilemap
创建出Grid-Tilemap
Ruby边移动边发射,子弹消失是因为子弹互相碰撞
int Random.Range(0,2)
//随机取值但不包含最右边的2,所以随机0,1
UI—>Legacy里有能打中文的Text
Hierarchy下,越往下越后渲染
当图片变形时,点Set Native Size
缩放,Scale With Screen,按屏幕比例缩放
爆炸特效的一些数值设置
改锚点:在Sprites>Environmnen下找到原图进入Sprite Editor中改,然后在Prefab中将Sprite Sort Point改成pivot
orthographic平行
perspective透视
rigidbody2d.simulated=false//不再伤害主角
注意Rigidbody2D别少写了2D
FixedUpdate存在漏帧的情况 在Update里处理输入,在FixedUpdate里不能放,会漏
instantiate用法
clone the object original and return the clone