Example #1
0
    private void OnTriggerEnter2D(Collider2D other)
    {
        if (_isRingDraging)
        {
            CancelInvoke("DragingStop");
            DragingStop();
            Plate plate = other.GetComponent <Plate>();

            if (null != plate)
            {
                if (!plate.AddRing(this))
                {
                    RemainedPrevPosition();
                }
            }
            _gameController.RingDroped();
        }
    }