All compiler errors have to be fixed before you can enter playmode!
UnityEditor.SceneView:ShowCompileErrorNotification()
とエラーが出ました。
調べてみると、全角とかビルドのエラーらしいのですが結局なんのエラーかわかりません。
Unity
1using UnityEngine; 2using System.Collections; 3using UnityEngine.UI; 4 5 6public class GameDirector : MonoBehaviour { 7 8 GameDirector hpGage; 9 10 // Use this for initialization 11 void Start () { 12 this.hpGage = GameDirector.Find ("hpGage"); 13 } 14 15 public void DecreaseHp(){ 16 this.hpGage.GetComponent<Image> ().fillAmount -= 0.1f; 17} 18}
using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { if(Input.GetKeyDown(KeyCode.LeftArrow)){ transform.Translate (-3, 0, 0); } if(Input.GetKeyDown(KeyCode.RightArrow)){ transform.Translate (3, 0, 0); } } }
using UnityEngine; using System.Collections; public class ArrowController : MonoBehaviour { GameObject player; // Use this for initialization void Start () { this.player = GameObject.Find ("player"); } // Update is called once per frame void Update () { transform.Translate (0, -0.1f, 0); if(transform.position.y < -5.0f){ Destroy (gameObject); } Vector2 p1 = transform.position; Vector2 p2 = this.player.transform.position; Vector2 dir = p1 - p2 ; float d = dir.magnitude; float r1 = 0.5f; float r2 = 1.0f; if(d< r1 + r2){ Destroy(gameObject); GameObject director = GameObject.Find ("GameDirector"); director.GetComponent<GameDirector> ().DecreaseHp (); } } }
using UnityEngine; using System.Collections; public class AllowGenerator : MonoBehaviour { public GameObject arrowPrefab; float span = 1.0f; float delta = 0; // Use this for initialization // Update is called once per frame void Update () { this.delta += Time.deltaTime; if(this.delta > this.span){ this.delta = 0; GameObject go = Instantiate (arrowPrefab) as GameObject; int px = Random.Range (-6, 7); go.transform.position = new Vector3 (px, 7, 0); } } }
と4つのファイルに記述しました。
なんのエラーなのでしょうか?

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。