Created
October 30, 2019 12:31
-
-
Save IshidaGames/23d2234add8f2f5b36295f31a68a2a04 to your computer and use it in GitHub Desktop.
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class HalloweenWalk : MonoBehaviour { | |
void Update () { | |
//このスクリプトをアタッチしたオブジェクトを動かす | |
//3つの数値はX軸、Y軸、Z軸の順になっている | |
this.gameObject.transform.Translate(0, 0, 0.05f); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment