using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CUBE : MonoBehaviour
{
public GameObject cube = GameObject.Find("cube");
public int speed = 200;
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown("left shift"))
{
cube.transform.position = Vector3.up * Time.time;
}
}
}
Verwandte Themen
Wie mache ich, dass er bei Unity nicht zu den Koordinaten 0, 0, 0 geht, sonder direkt von der aktuellen Position hoch?
Programm,
programmieren,
C Sharp,
Unity 3D,
Vektoren