コード例 #1
0
 // Update is called once per frame
 void Update()
 {
     PlayerSwitchLanes();
     if (Input.GetKeyDown(KeyCode.Mouse0))
     {
         if (swordClass.isReady)
         {
             AudioSource.PlayClipAtPoint(swordSound, transform.position);
             swordClass.Attack();
         }
     }
     if (Input.GetKeyDown(KeyCode.Mouse1))
     {
         bombClass.Attack(DetectForward());
     }
     if (Input.GetKeyDown(KeyCode.Space))
     {
         //AudioSource.PlayClipAtPoint(acidSound, transform.position);
         acidClass.Attack(DetectForward());
     }
 }