예제 #1
0
    void OnMouseEnter()
    {
        bool isShooting = gunShoot.isShooting;

        if (isShooting)
        {
            gunShoot.CancelInvoke("ShootBullet");
            gunShoot.isShooting = false;
        }
    }
 void OnMouseUp()
 {
     gunShoot.isShooting = false;
     gunShoot.CancelInvoke("ShootBullet");
 }