예제 #1
0
    void Freeze()
    {
        GameObject tempFly;

        for (int j = 0; j < flyTab.Count; j++)
        {
            tempFly = flyTab[j] as GameObject;
            IFlyable component = (IFlyable)tempFly.GetComponent(typeof(IFlyable));
            component.Freeze();
        }
        for (int k = 0; k < enemieTab.Count; k++)
        {
            tempFly = enemieTab[k] as GameObject;
            IFlyable component = (IFlyable)tempFly.GetComponent(typeof(IFlyable));
            component.Freeze();
        }

        timer.GetComponent <Timer> ().PauseTimer();
        tongue.GetComponent <Tongue>().Pause();
    }