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