protected override void DoAttack() { if (throwingYoyo) { return; } //YoyoSprite.enabled = false; projectile = Instantiate(ProjPrefab, transform.position, Quaternion.identity) as Boomerang; projectile.AddOnReturn = false; Vector2 dir = MathUtil.AngleToVector(transform.eulerAngles.z); projectile.Move(dir.normalized, this); throwingYoyo = true; }