// PRIVATE STATIC

    //--------------------------------------
    //  Methods
    //--------------------------------------
    ///<summary>
    ///	Use this for initialization
    ///</summary>
    void Start()
    {
        //
        _bowlingBallPrefabStateComponent = GetComponent <BowlingBallPrefabStateComponent>();
        GameObject scoreGUIText_gameobject = GameObject.Find("ScoreGUIText");

        _score_guitext = scoreGUIText_gameobject.GetComponent <GUIText>();

        //
        _bowlingPinPrefabs_gameobject = GameObject.FindGameObjectsWithTag("BowlingPinPrefabTag");
    }
    // PRIVATE STATIC

    //--------------------------------------
    //  Methods
    //--------------------------------------
    ///<summary>
    ///	Use this for initialization
    ///</summary>
    void Start()
    {
        _bowlingBallPrefabStateComponent = GetComponent <BowlingBallPrefabStateComponent>();
    }
Beispiel #3
0
    // PRIVATE STATIC

    //--------------------------------------
    //  Methods
    //--------------------------------------
    ///<summary>
    ///	Use this for initialization
    ///</summary>
    void Start()
    {
        _bowlingBallPrefabStateComponent = GetComponent <BowlingBallPrefabStateComponent>();

        _bowlingBallRolling_audiosource = GetComponent <AudioSource>();
    }