if(Inout.GetMosueButton(0))
{
player.transform.GetChild(0),transform.position+=new Vector3(Input.GetAxis("Mouse X"),0,0);
}
if(Inout.GetMosueButton(0))
{
player.transform.GetChild(0),transform.position+=new Vector3(Input.GetAxis("Mouse X"),0,0);
}
-2
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));