Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class VitoTranslation : MonoBehaviour {
- private bool translated;
- void start(){
- translated = false;
- }
- void Update () {
- ReadThisWord();
- }
- void ReadThisWord(){
- if(translated == false)
- transform.Translate(Vector3.forward * Time.deltaTime);
- if (transform.position.z >= 40.0f) //takes approx 40s to read "Read This Word"
- translated = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement