void unFreeze() { endPanel.GetComponent <ScorePanel> ().Init(); GameObject tempFly; for (int j = 0; j < flyTab.Count; j++) { tempFly = flyTab[j] as GameObject; IFlyable component = (IFlyable)tempFly.GetComponent(typeof(IFlyable)); component.UnFreeze(); } for (int k = 0; k < enemieTab.Count; k++) { tempFly = enemieTab[k] as GameObject; IFlyable component = (IFlyable)tempFly.GetComponent(typeof(IFlyable)); component.UnFreeze(); } timer.GetComponent <Timer> ().StartTimer(); tongue.GetComponent <Tongue>().UnPause(); pause = false; }