public void UseSkill(Transform hand) { if (!usingFire) { AudioManager.GetInstance().PlaySound(Sound.FireLoop); usingFire = true; } if (readyTimer <= 0) { GameObject nextFireball = danmakuPool.GetDanmaku(fireballIndex); Flamethrower flamethrowerScript = nextFireball.GetComponent <Flamethrower>(); if (nextFireball != null) { nextFireball.transform.position = hand.position; nextFireball.transform.rotation = hand.rotation; flamethrowerScript.SetOwner(gameObject); nextFireball.SetActive(true); readyTimer = 0.1f; } } }