removeBlock() public method

public removeBlock ( GameObject block ) : void
block GameObject
return void
Beispiel #1
0
    public void HitBy(Ball pBall)
    {
        if (_item.getItemType() != Const.ItemType.NONE)           // itemならば
        {
            _item.hit(pBall);
        }

        _blockManager.removeBlock(this);
    }
Beispiel #2
0
    IEnumerator delayNuke()
    {
        GameObject   cubeManager = GameObject.FindGameObjectWithTag("manager");
        BlockManager manager     = cubeManager.GetComponent <BlockManager>();

        yield return(new WaitForSeconds(0.2f));

        manager.removeBlock(gameObject);
    }