void Start() { sa = GameObject.Find("_StadiumAssetManager").GetComponent <StadiumAsset>(); ca = GameObject.Find("_CharacterAssetManager").GetComponent <CharacterAsset>(); stadiumSelected = sa.chosenStadium.name; InstantiateCharacterModel(); hasChangeScene = false; }
void Awake() { // allow only one instance of the Main Menu if (instance != null && instance != this) { Destroy(gameObject); return; } DontDestroyOnLoad(gameObject); instance = this; }
void Start() { sa = GameObject.Find("_StadiumAssetManager").GetComponent <StadiumAsset>(); InstantiateCharacterModel(); }