コード例 #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKey(KeyCode.LeftArrow))
     {
         transform.eulerAngles += new Vector3(0, 0, 150f * Time.deltaTime);
         curve.Rotate(150f * Time.deltaTime);
     }
     else if (Input.GetKey(KeyCode.RightArrow))
     {
         transform.eulerAngles += new Vector3(0, 0, -150f * Time.deltaTime);
         curve.Rotate(-150f * Time.deltaTime);
     }
     if (Input.GetKeyDown(KeyCode.Space))
     {
         //GetComponent<BallManager>().SpawnEnemy(Camera.main.ScreenToWorldPoint(Input.mousePosition),ColorType.COLOR1);
     }
 }