Ejemplo n.º 1
0
    /// <summary>
    /// 初期化
    /// </summary>
    protected virtual void Initialize()
    {
        // 音楽データの取得
        audioManager = AudioManager.Instance;

        // ライフコントローラーコンポーネントを取得
        lifeController = LifeCountText.GetComponent <LifeCountTextController>();

        // 初期化
        IsDie = false;
    }
Ejemplo n.º 2
0
    /// <summary>
    /// 初期化
    /// </summary>
    private void Initialize()
    {
        // 自身のコンポーネントを取得
        scoreText = gameObject.GetComponent <Text>();

        // 初期値を代入
        scoreText.text = score.ToString();

        // コンポーネントの取得
        life = LifeCountTextController.GetComponent <LifeCountTextController>();
    }