示例#1
0
    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;
    }