public void DefineWord(string word) { // ここでClientにwordを渡す bubbleGenerator.GenerateBubbles(client.GetWords(), Vector3.zero); }
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)); } }
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)); } }
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))); } } }
public void DefineWord(string[] words, Vector3 p) { bubbleGenerator.GenerateBubbles(words, p); }