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; | |
using UnityEngine.UI; | |
public class Time_limit : MonoBehaviour { | |
GameObject playerObj; | |
private float time; |
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; | |
//**********// | |
using UnityEngine.UI;//UIをスクリプトから扱えるように | |
//**********// | |
public class Control : MonoBehaviour { | |
CharacterController control; |
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 |
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 Box_generation : MonoBehaviour { | |
//プレハブ(白と赤のCube(ボックス))を変数に代入 | |
public GameObject cube;//白のCube(ボックス) | |
public GameObject cube1;//赤のCube(ボックス) | |
private float time;//ボックス生成時間 |
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 Follow : MonoBehaviour { | |
public GameObject target;//ターゲット(追尾対象)格納変数 | |
public float cameraSpeed;//スピード(カメラの速さ)格納変数 | |
Vector3 distance;//距離(ターゲットとどれくらいの距離を保つか)格納変数 | |
// Use this for initialization |
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 Control : MonoBehaviour { | |
CharacterController control; | |
Vector3 move = Vector3.zero; | |
public float advanceSpeed;//左移動スピード値 | |
public float backSpeed;//右移動スピード値 |