Skip to content

Instantly share code, notes, and snippets.

@sirokm007n
Created February 1, 2017 05:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirokm007n/8bf20d5b459103803390842a4088d1e8 to your computer and use it in GitHub Desktop.
Save sirokm007n/8bf20d5b459103803390842a4088d1e8 to your computer and use it in GitHub Desktop.
ブログ『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