void Awake() { InitCamera(); InitContainers(); BalanceLoader.LoadBalance(); if (_initplayer) { InitPlayer(); } else { AppModel.SetPlayer(GameObject.Find("Player")); } var straightLevelController = GameObject.Find("StraightLevelController"); if (straightLevelController != null) { DoStraightLevelLogic(straightLevelController.GetComponent <StraightLevelController>()); } }
private void InitPlayer() { var playerGo = Instantiate(_player).gameObject; AppModel.SetPlayer(playerGo); }