public virtual void DestroyBlock(int comboBonus) { mainManager.AddGameScore(breakScore); mainManager.AddGameScoreByComboBonus(); mainManager.AddComboBonus(comboBonus); Instantiate(prefabBlockBreakEffect, this.transform.position, new Quaternion(0.0f, 0.0f, 0.0f, 0.0f)).GetComponent <BlockBreakEffect>().Initialize(triggerName); Instantiate(prefabItem, this.transform.position, new Quaternion(0.0f, 0.0f, 0.0f, 0.0f)).GetComponent <Item>().Initialize(itemCode); Destroy(this.gameObject); }