Skip to content

Instantly share code, notes, and snippets.

@bibinba
Created Jan 15, 2018
Embed
What would you like to do?
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