Exemplo n.º 1
0
    void Start()
    {
        gate2.SetActive(false);
        gate1.SetActive(false);

        if (myMap.isLevelThree())
        {
            allGates.Add("+0+1+3");   // allGates use special lot position to represent gate location e.g. x is from 0 to 1, and y is 3
            allGates.Add("+0+1-3");
        }
        else if (myMap.isLevelFour())
        {
            allGates.Add("+0+1+1");   // Gate One (Level Four)
            allGates.Add("+7+8+3");   // Gate Two (Level Four)
            allGates.Add("+0+1-3");   // Gate Three (Level Four)
            allGates.Add("+7+8-1");   // Gate Four (Level Four)
        }
        else if (myMap.isLevelFive())
        {
            allGates.Add("+5+6+0");   // Gate One (Level Five)
            allGates.Add("+5+6-2");   // Gate Two (Level Five)
        }
        else if (myMap.isLevelSix())
        {
            allGates.Add("+4+5+3");   // Gate One (Level Six)
            allGates.Add("-2-1+1");   // Gate Two (Level Six)
            allGates.Add("+5+6+1");   // Gate Three (Level Six)
            allGates.Add("+5+6-1");   // Gate Four (Level Six)
        }
        else if (myMap.isLevelSeven())
        {
            allGates.Add("-2-1+4");   // Gate One (Level Seven)
            allGates.Add("+3+4+1");   // Gate Two (Level Seven)
            allGates.Add("+3+4+0");   // Gate Three (Level Seven)
            allGates.Add("-2-1-3");   // Gate Four (Level Seven)
        }
        tip1 = GameObject.FindWithTag("tip1");
        tip1.SetActive(false);
    }