public void StartGame(bool autoGame) { isAutoPlay = autoGame; if (gameStat != GameStat.Loaded) { return; } mainUI.FadeOut(); gameUI.FadeIn(); road.SpawnFirstTwo(); plane.localPosition = new Vector3( road.currentBlock.transform.localPosition.x, -3, road.currentBlock.transform.localPosition.z); role.StartEnter(); gameStat = GameStat.Playing; GameStartAction?.Invoke(); //plane.transform.localPosition = Vector3.zero; }