Пример #1
0
    public override void Activate(HitResult hr)
    {
        if (hr.IsValid() == false)
        {
            return;
        }

        BounceProcess(hr, bounceProcessType);
    }
Пример #2
0
    public override void Activate(HitResult hr)
    {
        if (hr.IsValid() == false)
        {
            return;
        }

        Wall hitWall = hr.target as Wall;

        if (hitWall == null)
        {
            return;
        }

        Destroy(gameObject, destroyDelay);
    }