public void CmdInputNukeCode(GameObject nuke, string code)
    {
        NukeInteract nukeScript = nuke.GetComponent <NukeInteract>();

        if (nukeScript != null)
        {
            nukeScript.Validate(code);
        }
    }
Exemple #2
0
    public void TryArm()
    {
        if (cooldown)
        {
            return;
        }

        if (NukeInteract.Validate())
        {
            InfoDisplay.SetValue = "PREPARE TO DIE";
        }
        else
        {
            StartCoroutine(ErrorCooldown());
        }
    }