Ejemplo n.º 1
0
 void OnTriggerEnter2D()
 {
     if (PS.score >= 30)
     {
         gameManage.CompleteLevel();
     }
     else
     {
         if ((TT != null) && (GOS != null))
         {
             TT.notEnoughMicroship = true;
             GOS.Lose();
         }
     }
 }
    void TimeState()
    {
        if (totalTime > remainingTime)
        {
            initState = true;
        }

        if (state5Time > remainingTime)
        {
            state5 = true;
        }

        if (state4Time > remainingTime)
        {
            state4 = true;
        }

        if (state3Time > remainingTime)
        {
            state3 = true;
        }

        if (state2Time > remainingTime)
        {
            state2 = true;
        }

        if (state1Time > remainingTime)
        {
            state1 = true;
        }

        if (stateEmptyTime > remainingTime)
        {
            emptyState = true;
        }

        if (-4 >= remainingTime)
        {
            if ((GOS != null) && (TT != null))
            {
                TT.noMoreTime = true;
                remainingTime = totalTime;
                GOS.Lose();
            }
        }
    }