// Start is called before the first frame update void Start() { player = GameObject.Find("Ball").GetComponent <BallPlayer>(); score.GetComponent <Text>().text = "" + ScoreCurrent; cooltime = LevelController.instance.getCoolTimeLevel(); }
private void Awake() { if (instance != null) { Destroy(gameObject); } else { instance = this; } }
public void PlayGame() { m_prepareLayer.SetActive(false); m_hudLayer.SetActive(true); m_bEnded = false; m_bPausing = false; m_workingLevelDTO.Clear(); m_levelSubStep = 0; m_ballPlayer = SpawnGameObject <BallPlayer> ("BallPlayer"); m_ballPlayer.SetMapPos(Vector2.zero); m_scoreText.text = m_score.ToString(); }