Skip to content

Instantly share code, notes, and snippets.

@bibinba
Created January 15, 2018 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bibinba/a8d3a64f04c416132eca5164de2fdf1a to your computer and use it in GitHub Desktop.
Save bibinba/a8d3a64f04c416132eca5164de2fdf1a to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FrostweepGames.Plugins.GoogleCloud.SpeechRecognition.aa;
public class text3d : MonoBehaviour {
string text;
private GameObject textObject;
public Material textMaterial;
// Use this for initialization
void Start () {
text = "test";
textObject = FlyingText.GetObject("スタート", new Vector3(-3, 5, 4), Quaternion.identity);
}
// Update is called once per frame
void Update () {
if (text != aa.kekka)
{
Vector3 random = new Vector3(Random.Range(-12.0f, 6.0f), 4, Random.Range(1.6f, 6.0f));
textObject = FlyingText.GetObject(aa.kekka, random, Quaternion.identity);
}
text = aa.kekka;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment