5431人加入学习
(7人评价)
Unity2D中级案例 - 猎宝行动

制作于2018.2.14,基于Unity2017.3

价格 ¥ 235.00
该课程属于 Unity - A计划(永久有效期) 请加入后再学习

if(Inout.GetMosueButton(0))

{

  player.transform.GetChild(0),transform.position+=new Vector3(Input.GetAxis("Mouse X"),0,0);

}

[展开全文]

Float DirX,DirY

IdleBlendTree->2DsimpleDirectional

Motion->01,0-1,-10,10,-11,11,-1-1,1-1

MoveBlendTree->2DsimpleDirectional

Motion->上下左右左上右上左下右下

DieBlendTree->2DfreeformCartesian

Motion->l,r->-11

[展开全文]

[Header("元素预制体")]   //显示在面板上

[Tooltip("透明边界预制体")]//鼠标放在面板信息上会有注

public GameObject bgElement;

[展开全文]

屏幕坐标转世界坐标

Camera.main.ScreenToWorldPoint(new Vector3(Screen.width / 2, Screen.height / 2, 0) + new Vector3(0, 0, 10));

[展开全文]