private void Start() { if (stage != 5) { player = Instantiate(playerModel, playerStartPos, Quaternion.identity); enemy = Instantiate(enemyModel, enemyStartPos, Quaternion.identity); enemy.GetComponent <EnemyAI>().enabled = false; crown = Instantiate(crownModel); crownFollow = crown.GetComponent <CrownFollow>(); crown.SetActive(false); sphere = simplePool.PoolObject(); sphere.transform.position = sphereStartPos; sphereBounce = sphere.GetComponent <SphereBounce>(); sphere.SetActive(true); scoreHolderManager.InitializeBoard(maxScore); } else { player = Instantiate(playerModel, playerStartPos, Quaternion.identity); enemy = null; sphere = simplePool.PoolObject(); sphere.transform.position = sphereStartPos; sphereBounce = sphere.GetComponent <SphereBounce>(); sphere.SetActive(true); scoreHolderManager.InitializeGemBoard(); } PlayerFollow.player = player.transform; }