Fax.SendFax C# (CSharp) Method

SendFax() public method

public SendFax ( ) : void
return void
    public void SendFax()
    {
        faxNumber = gameObject.GetComponent<InputField>();
        if (faxNumber.text.Length == emailCharMin)
        {
            //Strike to Character
            Debug.Log(faxNumber.text);
            Debug.Log("OK");
            taskManager.CompleteTask("Fax");
        }
        else {
            Debug.Log(faxNumber.text);
            Debug.Log("NOT");
        }

        Player.GetComponent<CharController>().enabled = true;
        Player.transform.FindChild("Trigger").gameObject.SetActive(true);
        faxWindow.SetActive(false);
        gameObject.SetActive(false);
    }