Skip to content

Instantly share code, notes, and snippets.

@IshidaGames
Created October 30, 2019 12:31
Show Gist options
  • Save IshidaGames/23d2234add8f2f5b36295f31a68a2a04 to your computer and use it in GitHub Desktop.
Save IshidaGames/23d2234add8f2f5b36295f31a68a2a04 to your computer and use it in GitHub Desktop.
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