public removeBlock ( GameObject block ) : void | ||
block | GameObject | |
return | void |
public void HitBy(Ball pBall) { if (_item.getItemType() != Const.ItemType.NONE) // itemならば { _item.hit(pBall); } _blockManager.removeBlock(this); }
IEnumerator delayNuke() { GameObject cubeManager = GameObject.FindGameObjectWithTag("manager"); BlockManager manager = cubeManager.GetComponent <BlockManager>(); yield return(new WaitForSeconds(0.2f)); manager.removeBlock(gameObject); }