// TODO: 適当 private void onDeleteBuyo(object sender, Tuple <Vector2, int> positionAndObjectCount) { var position = positionAndObjectCount.Item1; var objectCount = positionAndObjectCount.Item2; comboManager.CountUp(); comboManager.Show(position); var info = new DeleteBuyoInfo(objectCount, comboManager.Value); Debug.Log($"objects: {info.ObjectCount}, combo: {info.ComboCount}"); DeleteBuyo?.Invoke(this, info); }
protected virtual void Update() { int chainCount = GetChainCount(null); if (chainCount >= 4) { DestroyChain(null); var tuple = new Tuple <Vector2, int>(transform.position, chainCount); DeleteBuyo?.Invoke(this, tuple); sfxManager.Play(BuyoSfxType.Delete); } if (view.IsGlow && chainCount < 3) { view.HideGlow(); } if (!view.IsGlow && chainCount >= 3) { view.Glow(); } }