Exemple #1
0
    public void DefineWord(string word)
    {
        // ここでClientにwordを渡す


        bubbleGenerator.GenerateBubbles(client.GetWords(), Vector3.zero);
    }
Exemple #2
0
 IEnumerator BubblePath()
 {
     while (true)
     {
         bubbleGenerator.GenerateBubbles((int)Random.Range(1f, 3f), transform.position + (transform.right * -1), GetComponent <Rigidbody2D>().velocity * -10f);
         yield return(new WaitForSeconds(10 / GetComponent <Rigidbody2D>().velocity.magnitude));
     }
 }
Exemple #3
0
    IEnumerator PlantBubbleTimer()
    {
        while (true)
        {
            yield return(new WaitForSeconds(Random.Range(3f, 6f)));

            StartCoroutine(bubbleGenerator.GenerateBubbles(Random.Range(1, 3), plantParts[Random.Range(0, plantParts.Length - 1)].transform.position, Vector2.zero));
        }
    }
Exemple #4
0
    IEnumerator BoostUpdate()
    {
        while (true)
        {
            yield return(new WaitForSeconds(0.025f));

            if (boosting == true)
            {
                StartCoroutine(bubbleGenerator.GenerateBubbles(Random.Range(1, 2), transform.position + (transform.up * -1), (transform.up * -10f)));
            }
        }
    }
Exemple #5
0
 public void DefineWord(string[] words, Vector3 p)
 {
     bubbleGenerator.GenerateBubbles(words, p);
 }