Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ブログ『Unity講座chap4』スクリプト『Falling.cs』
using UnityEngine;
using System.Collections;
public class Falling : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
Vector3 down = transform.position;
down.y -= 0.002f;
transform.position = down;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment