Beispiel #1
0
    public void StopDrag()
    {
        if (!isDragging)
        {
            return;
        }

        isDragging = false;
        //Genie.instance.LogEvent(OE_INTERACT.Create(OE_INTERACT.Type.DROP, "gameplay.nestConvert");
        Genie.I.LogEvent(OE_INTERACT.Create(OE_INTERACT.Type.DROP, "gameplay.nestConvert"));

        if (_highlightPercent < dragThresholdPercent)
        {
            convertHolder.GetComponent <Animator>().SetBool("draggingNest", false);
            SnapBack();
            onesColumn.ConvertSnapBack();
        }
        else
        {
            this.WaitOneFrameThen(() => {
                convertHolder.GetComponent <Animator>().SetBool("draggingNest", false);
            }
                                  );
        }

        onesColumn.Buckle();
    }