Beispiel #1
0
 private void TrySum()
 {
     if (_sumTarget != null && _curretBlock.Color == _sumTarget.Color)
     {
         _sumTarget.LevelUp();
         Destroied?.Invoke(_curretBlock);
         Destroy(gameObject);
     }
 }
 protected void OnDestroy()
 {
     Destroied?.Invoke(this);
 }