示例#1
0
 void Update()
 {
     horizontal = Input.GetAxisRaw("Horizontal");
     vertical   = Input.GetAxisRaw("Vertical");
     if (Input.GetKeyDown(KeyCode.Space))
     {
         movable.Fire();
     }
 }