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 Tooltips : MonoBehaviour | |
{ | |
public TextMesh textMesh; //3DTextを格納 | |
public Texture2D button; //buttonイメージを格納 | |
public GameObject spider; //蜘蛛オブジェクトを格納 |
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 GUIButtonTUT : MonoBehaviour | |
{ | |
public TextMesh textMesh; //3DTextを格納 | |
public Texture2D button; //buttonイメージを格納 | |
public GameObject spider; //蜘蛛オブジェクトを格納 |
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 RandomGenerator : MonoBehaviour | |
{ | |
public TextMesh textDisplay; | |
public int randomNumber; | |
float timer = 0.0f; |
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 Moveonly : MonoBehaviour | |
{ | |
public float speed = 10; //playerのスピード | |
private Rigidbody rb; |
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; | |
using UnityEngine.UI; //Textの名前空間 | |
public class PlayerController : MonoBehaviour { | |
public float speed = 20; //playerのスピード | |
public Text scoreText; //textを格納する箱 | |
public Text winText; //textを格納する箱 |
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 Fallout : MonoBehaviour { | |
public int lives = 5; //所持ライフ | |
public Transform respawn; //Inspectorでrespawnを格納 | |
public Transform fallout; //Inspectorでfalloutを格納 |
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 CameraSwitch : MonoBehaviour | |
{ | |
bool isSecondary; | |
public GameObject mainCamera; //mainCameraオブジェクトを入れる箱をつくる |
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 FollowCamera : MonoBehaviour | |
{ | |
public GameObject player; //追いかける対象物のplyaerを入れる箱です。 | |
private Vector3 offset = Vector3.zero; | |
void Start() |