Ejemplo n.º 1
0
    public static void update(string landedOn)
    {
        switch (landedOn)
        {
        case "Station":
            landedOnStation = true;
            break;

        case "Moon":
            if (landedOnStation)
            {
                landedOnMoon = true;
                canJump      = true;
            }
            break;

        case "Mars":
            landedOnMars = true;
            canJump      = true;
            break;

        case "Station 1":
            landedOnStationOne = true;
            hiddenTarget.setHidden(false);
            break;

        case "Station 2":
            landedOnStationTwo = true;
            canJump            = true;
            break;

        case "Jupiter":
            landedOnJupiter = true;
            hiddenTarget.setHidden(false);
            break;

        case "Saturn":
            landedOnSaturn = true;
            hiddenTarget.setHidden(false);
            break;
        }
        //Debug.Log(string.Format("{0}, {1}, {2}, {3}, {4}, {5}, {6}", landedOnStation, landedOnMoon, landedOnMars, landedOnStationOne, landedOnStationTwo, landedOnJupiter, landedOnSaturn));
        //Debug.Log(canJump);
    }
Ejemplo n.º 2
0
 public void hideAllInidicators()
 {
     hiddenTarget.setHidden(true);
     shownTarget.setHidden(true);
 }