标签:vector object sla 移动 axis orm game ati 实例
transform.Translate(Input.GetAxis("Horizontal")*Time.deltaTime,0,0); 移动
transform.Translate(0,Input.GetAxis("Vertical") * Time.deltaTime, 0);
Instantiate(paodan_bl, transform.position, transform.rotation);实例化泡弹
Destroy(gameObject,1f);1秒后销毁携带脚本的物体
if (Input.GetKey("w"))
{
transform.Translate(Vector3.forward * Time.deltaTime * speed);
}
if (Input.GetKey("s"))
{
transform.Translate(Vector3.back * Time.deltaTime * speed);
}
if (Input.GetKey("a"))
{
transform.Translate(Vector3.left * Time.deltaTime * speed);
}
if (Input.GetKey("d"))
{
transform.Translate(Vector3.right * Time.deltaTime * speed);
}
标签:vector object sla 移动 axis orm game ati 实例
原文地址:http://www.cnblogs.com/wshyj/p/6106738.html