Пример #1
0
 // Update is called once per frame
 void FixedUpdate()
 {
     if (Input.GetKey("r"))
     {
         cannon.cannonFire("ray");
     }
     else if (Input.GetKey("b"))
     {
         cannon.cannonFire("box");
     }
     else if (Input.GetKey("c"))
     {
         cannon.cannonFire("capsule");
     }
     else if (Input.GetKey("s"))
     {
         cannon.cannonFire("sphere");
     }
 }