예제 #1
0
    private void OnTriggerStay(Collider other)
    {
        ICollectable collectable = other.transform.GetComponent <ICollectable>();

        if (collectable != null && !other.transform.CompareTag("striker"))
        {
            ZoneType collectableType = collectable.GetCollectableType();
            collectable.Collect(type);
            OnZoneHit(collectableType);
        }
    }