// Start is called before the first frame update void Start() { score = 0; positionKizi.y = 0; sea = Seaweed.GetComponent <seaweed>(); // DangerousText.gameObject.SetActive(false); }
// 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); }
void Start() { // Rigidbody を取得 FreezeBall(); sea = Seaweed.GetComponent <seaweed>(); }