Tạo ảnh

0
185

Đã kiểm tra với phiên bản: 5.1
– –
Khó khăn: Người mới bắt đầu
Tạo ảnh bằng cách ghép ảnh nghệ thuật, thành phần vật lý và mã C # tùy chỉnh.

Mover

Expand view

Copy code
using UnityEngine;
using System.Collections;

public class Mover : MonoBehaviour
{
public float speed;

void Start ()
{
rigidbody.velocity = transform.forward * speed;
}
}

LEAVE A REPLY

Please enter your comment!
Please enter your name here