void OnInitGame(GameData.types type) { print("OnInitGame " + type); progressBar.Init(type); uiScoreManager.Init(type); gameOver.Reset(); }
Game GetGameByType(GameData.types type) { foreach (GamesData gData in games) { if (gData.gameData.type == type) { return(gData.game); } } return(null); }
void OnInitGame(GameData.types type) { game = GetGameByType(type); game.gameObject.SetActive(true); game.Init(this); faceBasicDetections.Init(); if (state == states.HEAD_ON) { game.OnUserStatus(true); } }
public void Init(GameData.types type) { }