// Use this for initialization
    //TurnOnPhone()
    void Start()
    {
        tsc = gameObject.GetComponent<TextStringCreation>();
        cs = (CanvasScript) canvas.GetComponent<CanvasScript>();
        cs.ResetAllLines ();

        tmm = new TextMessageMenu();
        mm = new MainMenu ();

        inboxTexts = new TextMessageCollection (inboxTextsJson, TextMessageCollection.CollectionType.Inbox);
        outboxTexts = new TextMessageCollection (outboxTextsJson, TextMessageCollection.CollectionType.Outbox);
        draftTexts = new TextMessageCollection (draftTextsJson, TextMessageCollection.CollectionType.Drafts);
        newlyWrittenText = new TextMessageCollection ("", TextMessageCollection.CollectionType.Create);

        cc = new ContactsCollection ();
        cc.LoadSavedContacts ();

        MainMenu.SetState (MainMenu.MainMenuState.Messages);
        TextMessageMenu.SetState (TextMessageMenu.TextMessageMenuState.Inbox);
        numberOnScreen = "";

        HandleHasUnreadMessages ();
        SetViewToHomeScreen ();

        if (hasReception)
        {
            receptionIcon.GetComponent<SpriteRenderer> ().sprite = hasReceptionSprite;
        }
        else
        {
            receptionIcon.GetComponent<SpriteRenderer> ().sprite = noReceptionSprite;
        }

        //example of adding a new contact
        //Contact c5 = new Contact ("lisa", "1234567");
        //cc.AddContactToContacts (c5, true);

        //example of adding a new inbox text
        //TextMessage txt1 = new TextMessage ("1234", "content txt1");
        //inboxTexts.HandleNewIncomingText(txt1, true);

        //example of adding a new outbox text
        //TextMessage outText = new TextMessage ("me", "my text message");
        //outboxTexts.AddTextToTexts(outText);
    }
    void Start()
    {
        GameObject canvas = GameObject.FindGameObjectWithTag ("PhoneCanvas");
        cs = (CanvasScript) canvas.GetComponent<CanvasScript>();
        cs.ResetAllLines ();

        GameObject phone = GameObject.FindGameObjectWithTag ("Phone");
        ps = (PhoneScript)phone.GetComponent<PhoneScript> ();

        tsc = ps.tsc;
    }