コード例 #1
0
    ///////////////////////////////////////////////////////////////////////////
    //  非公開関数
    ///////////////////////////////////////////////////////////////////////////
    //初期化===================================================================
    void Awake()
    {
        //PlayerManager取得----------------------------------------------------
        m_PlyMgr = GameObject.FindObjectOfType <PlayerManager>();
        //子オブジェクトの参照
        m_HUD = transform.FindChild("Canvas").GetComponent <HeadUpDisplay>();
        //アンカー
        m_CouresAncs = GameObject.Find(CourseAnchors.GBJ_NAME).GetComponent <CourseAnchors>();

        //カメラ関連初期化
        CameraAwke();
    }
コード例 #2
0
    ///////////////////////////////////////////////////////////////////////////
    //  非公開関数
    ///////////////////////////////////////////////////////////////////////////
    //初期化===================================================================
    void Awake()
    {
        //PlayerManager取得----------------------------------------------------
        m_PlyMgr = GameObject.FindObjectOfType<PlayerManager>();
        //子オブジェクトの参照
        m_HUD   = transform.FindChild("Canvas").GetComponent<HeadUpDisplay>();
        //アンカー
        m_CouresAncs     = GameObject.Find(CourseAnchors.GBJ_NAME).GetComponent<CourseAnchors>();

        //カメラ関連初期化
        CameraAwke();
    }