Exemple #1
0
    void Start()
    {
        sa = GameObject.Find("_StadiumAssetManager").GetComponent <StadiumAsset>();
        ca = GameObject.Find("_CharacterAssetManager").GetComponent <CharacterAsset>();

        stadiumSelected = sa.chosenStadium.name;

        InstantiateCharacterModel();
        hasChangeScene = false;
    }
Exemple #2
0
    void Awake()
    {
        // allow only one instance of the Main Menu
        if (instance != null && instance != this)
        {
            Destroy(gameObject);
            return;
        }

        DontDestroyOnLoad(gameObject);
        instance = this;
    }
Exemple #3
0
 void Start()
 {
     sa = GameObject.Find("_StadiumAssetManager").GetComponent <StadiumAsset>();
     InstantiateCharacterModel();
 }