void Awake() { Instance = this; LoadGameData(); _gameManager.GetProfileList(); // Just to force the profile list to be loaded in the inspector. _isPlaying = true; _playerGameObject = GameObject.FindWithTag("Player"); }
private void Awake() { if (_instance != null) { Destroy(gameObject); } else { _instance = this; } }
// Use this for initialization void Start() { StartCoroutine(Shipment()); _mainLevelManager = FindObjectOfType <MainLevelManager>(); }