Skip to content

Instantly share code, notes, and snippets.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Change : MonoBehaviour {
void Start () {
//アタッチするオブジェクトのRendererのComponentを取得する
Renderer coloring = this.GetComponent<Renderer>();
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Create : MonoBehaviour {
//Prefabを入れる変数
public GameObject sphere;
//時間を入れる変数
private float time = 0;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//UIを使う時に必要
using UnityEngine.UI;
public class Create : MonoBehaviour {
public GameObject sphere;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Shot : MonoBehaviour {
public float thrust;
public Rigidbody rb;
void Start () {
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraPos : MonoBehaviour {
private GameObject sphere;
void Start () {
//HierarchyからSphereという名前のオブジェクトを取得する
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Shot : MonoBehaviour {
public float thrust;
public Rigidbody rb;
//オン・オフのスイッチのようなもの
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//UI使う時は忘れずに
using UnityEngine.UI;
//SceneManager使う時は忘れずに
using UnityEngine.SceneManagement;
public class Landing : MonoBehaviour {
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Stripe : MonoBehaviour {
public GameObject cube;
void Start () {
//0から49になるまで1を足し続ける
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//UI使う時は忘れずに!
using UnityEngine.UI;
public class Shot : MonoBehaviour {
public float thrust;
public Rigidbody rb;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//TextはUIなので使うので入れる
using UnityEngine.UI;
public class HighScore : MonoBehaviour {
public GameObject sphere;
public Text highScore;