Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     score          = 0;
     positionKizi.y = 0;
     sea            = Seaweed.GetComponent <seaweed>();
     //   DangerousText.gameObject.SetActive(false);
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     gameManager      = GameObject.Find("GameManager").GetComponent <GameManager>();
     sea              = Seaweed.GetComponent <seaweed>();
     PlayerPosition   = gameManager.UI_player.transform.position.y;
     PheasantPosition = gameManager.UI_kigi.transform.position.y;
     isDanger         = false;
     audioSource      = gameObject.GetComponent <AudioSource>(); //AudioSource内のドラッグ&ドロップしたSEやBGMを参照
     audioSource.clip = audioClip;
     DistanceText.gameObject.SetActive(true);
     DisImage.gameObject.SetActive(true);
 }
Ejemplo n.º 3
0
 void Start()
 {
     // Rigidbody を取得
     FreezeBall();
     sea = Seaweed.GetComponent <seaweed>();
 }