Пример #1
0
    void OnFinishCode()
    {
        isHacked = true;
        anim.SetBool("HackingTrue", true);
        if (posPStore >= 0 && codePlayer [posPStore] != null)
        {
            codePlayer [posPStore].ClearHack(OnStartCode, OnCancelCode, OnFinishCode);
        }
        if (hack != null)
        {
            hack.HackedSystem();
        }

        if (secondaryHack != null)
        {
            secondaryHack.HackedSystem();
        }

        audio.Stop();
        activeSFX.Spawn(transform.position, transform.rotation);

        posPStore = -1;

        if (onFinishHack != null)
        {
            onFinishHack();
        }
    }