private void removeWindowReferences() { _questionWindow.onLeftAnswer -= onLeftAnswer; _questionWindow.onAnswered -= onBuyMoreTerraDollars; _questionWindow.onAnswered -= onBuyMoreTerraCoins; _questionWindow = null; }
public void cleanQuestionWindow() { if(buyMoreTDsBtn!=null) { buyMoreTDsBtn.onAnswered -= onBuyMore; buyMoreTDsBtn.onLeftAnswer -= onDidntRevive; buyMoreTDsBtn = null; } }
public void onContinueEvolving() { if (cancelEvolves != null) { cancelEvolves.onLeftAnswer -= onCancelEvolution; cancelEvolves.onAnswered -= onContinueEvolving; cancelEvolves = null; } battleOverScreen.consumeEvolves (); }