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 System; //記載漏れに注意 string passwordToEdit = String.Empty;で必要 | |
public class GUIPassword : MonoBehaviour { | |
string passwordToEdit = String.Empty; | |
void OnGUI() |
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 GUIWindow : MonoBehaviour { | |
//widowのスタート位置x,y、Windowのサイズx,y | |
private Rect windowRect = new Rect(500, 200, 200, 200); | |
void OnGUI() |
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 ScrollTut : MonoBehaviour { | |
private float hScrollbarValue; | |
public Vector2 scrollPosition = Vector2.zero; |
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 Slidebers : MonoBehaviour | |
{ | |
private float hSliderValue = 0.0f; //平行スライドバーvalue | |
private float vSliderValue = 0.0f; //垂直スライドバーvalue |
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 TextGUI : MonoBehaviour { | |
private string textFieldString = "text field"; | |
private string textAreaString = "text area"; |
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 ShooterScript : MonoBehaviour | |
{ | |
//bulletを格納して取得する | |
public Transform bullet; | |
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 DestoyBullet : MonoBehaviour { | |
// Use this for initialization | |
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 BulletMover : MonoBehaviour { | |
//弾丸のスピード | |
private int speed = 10; | |
// Use this for initialization | |
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 Toolbar : MonoBehaviour { | |
private int toolbarInt = 0; | |
//配列を使用 toolbarStringsへ{}の中を代入 | |
private string[] toolbarStrings = { "PowerUp 1 ", "PowerUp 2", "PowerUp 3" }; |