/// <summary> /// 初期化 /// </summary> protected virtual void Initialize() { // 音楽データの取得 audioManager = AudioManager.Instance; // ライフコントローラーコンポーネントを取得 lifeController = LifeCountText.GetComponent <LifeCountTextController>(); // 初期化 IsDie = false; }
/// <summary> /// 初期化 /// </summary> private void Initialize() { // 自身のコンポーネントを取得 scoreText = gameObject.GetComponent <Text>(); // 初期値を代入 scoreText.text = score.ToString(); // コンポーネントの取得 life = LifeCountTextController.GetComponent <LifeCountTextController>(); }