Minima e Max Speed
Página 1 de 1
Minima e Max Speed
using UnityEngine;
using System.Collections;
public class random : MonoBehaviour {
public float maxSpeed = 10;
public float minSpeed = 1;
float speed;
void Start () {
speed = Randon.Rage(minSpeed, maxSpeed);
}
void Update () {
transform.Translate(Vector3.forwaed * Time.deltaTime * speed);
}
}
Comenta aiii
using System.Collections;
public class random : MonoBehaviour {
public float maxSpeed = 10;
public float minSpeed = 1;
float speed;
void Start () {
speed = Randon.Rage(minSpeed, maxSpeed);
}
void Update () {
transform.Translate(Vector3.forwaed * Time.deltaTime * speed);
}
}
Comenta aiii
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|