Example #1
0
    void GenerateRelatedBubbles()
    {
        GetComponent <AudioSource> ().PlayOneShot(bubbleSE);
        string w = textMesh.text;

        Debug.Log(w);
        bubbleController.SendWord(w, transform.position);
        this.gameObject.GetComponent <SpriteRenderer> ().enabled = false;
        textMesh.gameObject.SetActive(false);
        Invoke("BubbleDestroy", 0.7f);
    }
Example #2
0
    public void InputLogger()
    {
        string word = inputField.text;

        if (string.IsNullOrEmpty(word))
        {
            Debug.Log("You can't send Null or Empty word");
        }
        else
        {
            bubbleController.SendWord(word, Vector3.zero);              //本番
        }
    }