Dev - C++ - error CS1503: Argument 1: cannot convert from 'int' to 'UnityEngine.Vector3'

 
Vista:
sin imagen de perfil
Val: 2
Ha aumentado 1 puesto en Dev - C++ (en relación al último mes)
Gráfica de Dev - C++

error CS1503: Argument 1: cannot convert from 'int' to 'UnityEngine.Vector3'

Publicado por ratz (1 intervención) el 06/04/2021 16:14:44
recivo este error al poner una script que programe en unity si me pudieran decir que tengo que hacer exactamente se los agradeceria <3
error CS1503: Argument 1: cannot convert from 'int' to 'UnityEngine.Vector3'

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
public class per : MonoBehaviour
{
    public float speedmov = 5.0f;
    public float speedrotation = 200.0f;
    private Animator anim;
    public float x, y;
 
 
    // Start is called before the first frame update
    void Start()
    {
        anim = GetComponent<Animator>();
 
 
 
    }
 
    // Update is called once per frame
    void Update()
    {
        x = Input.GetAxis("Horizontal");
        y = Input.GetAxis("Vertical");
 
        transform.Rotate(0, x * Time.deltaTime * speedrotation);
        transform.Translate(0, 0, y * Time.deltaTime * speedmov);
    }
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder