// Start is called before the first frame update virtual protected void Start() { addPointsEvent = new AddPointsEvent(); lastBlockDestroyed = new LastBlockDestroyed(); EventManager.addLastBlockLostInvoker(this); EventManager.addAddPointsInvoker(this); }
private void Start() { _lastBlockDestroyed = new LastBlockDestroyed(); EventManager.LastBlockInvoker(this); EventManager.LastBallListener(FixScore); _numBlocks = GameObject.FindGameObjectsWithTag("Block").Length - 1; Debug.Log("on start " + _numBlocks); EventManager.BlockListener(CalcNumBlock); }