Created
January 15, 2018 07:04
-
-
Save bibinba/a8d3a64f04c416132eca5164de2fdf1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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