示例#1
0
 // Start is called before the first frame update
 virtual protected void Start()
 {
     addPointsEvent     = new AddPointsEvent();
     lastBlockDestroyed = new LastBlockDestroyed();
     EventManager.addLastBlockLostInvoker(this);
     EventManager.addAddPointsInvoker(this);
 }
示例#2
0
    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);
    }