Exemple #1
0
    //START
    // Use this for initialization
    void Start()
    {
        initialBikePos = bike.transform.position;

        //Script
        boughtItemsScript = GameObject.FindGameObjectWithTag("MoneyManager").GetComponent <ListOfBoughtItems>();

        //Audio
        audioManager = GameObject.FindGameObjectWithTag("AudioManager").GetComponent <AvatarAudio>();
    }
    // Use this for initialization
    void Start()
    {
        avatarCollection = GetComponent <AvatarPartsCollection>();

        boughtItemScript = GameObject.FindGameObjectWithTag("MoneyManager").GetComponent <ListOfBoughtItems>();
    }