※リストが表示されない場合
AddBlockなどの広告ブロックツールがONになっているとリストなどが表示されない場合があります。これらのツールをOFFにしてみてください。
#pragma strict function FixedUpdate () { var x:float = Input.GetAxis("Horizontal"); var y:float = Input.GetAxis("Vertical"); rigidbody.AddForce(new Vector3(x, 0, y)); } function OnCollisionEnter (collision:Collision) { if (collision.gameObject.name == "Plane") return; collision.gameObject.renderer.enabled = false; collision.collider.enabled = false; }
<< 前へ | 次へ >> |