protected virtual void InteractWithArrow(ArrowScript arrow)
 {
     if (isForbiddenTarget)
         GameMangerScript.instance.OnLoseArrow();
     if (isArrowDestroyer)
         arrow.DestroyArrow();
     else
         arrow.Stop();
 }
Пример #2
0
    protected override void InteractWithArrow(ArrowScript arrow)
    {
        if (!isArrowDestroyer)
        {
            AttachArrow(arrow);
        }

        if (!isFalled && canFallByArrow)
        {
            Fall();
            if (isArrowDestroyer)
            {
                arrow.DestroyArrow();
            }
        }
        else
        {
            base.InteractWithArrow(arrow);
        }
    }