Created
February 1, 2017 05:19
-
-
Save sirokm007n/8bf20d5b459103803390842a4088d1e8 to your computer and use it in GitHub Desktop.
ブログ『Unity講座chap4』スクリプト『Falling.cs』
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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