Exemple #1
0
 private void MakeOneOfSwappedDotsABomb(Dot currentDot, DotType bombType)
 {
     currentDot?.Also(dot =>
     {
         if (dot.isMatched)
         {
             dot.MakeBomb(bombType);
         }
         else
         {
             currentDot.otherDot?.GetComponent <Dot>()?.Also(other =>
             {
                 if (other.isMatched)
                 {
                     other.MakeBomb(bombType);
                 }
             });
         }
     });
 }