public void MakeTransition(float dt)
        {
            CCLog.Log("Make Transition to Level");
            // CCDirector.SharedDirector.ReplaceScene(new CCTransitionFade(1, TheLevel.Scene, CCColor3B.White));

            Director.ReplaceScene(TheLevel.GetScene(Window));
        }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        ship         = GetComponentInChildren <StarshipController>();
        gui          = GetComponent <GUIController>();
        frontMessage = GetComponentInChildren <FrontMessage>();
        mainTimer    = GetComponentInChildren <MainTimer>();
        bar          = GetComponentInChildren <Bar>();
        speedCounter = GetComponentInChildren <SpeedCounter>();
        oobAudio     = GetComponentInChildren <OutOfBoundsAudio>();
        fuelAlarm    = GetComponentInChildren <FuelAlarm>();
        lowFuelText  = GetComponentInChildren <LowFuelText>();

        timeLeft     = 10f;     //!!!!
        currentSpeed = minimumSpeed;
        fuel         = 100f;

        theLevel = GetComponent <TheLevel>();


        foreach (Transform child in transform)
        {
            if (child.name == "StarsNear")
            {
                starsNear = child.GetComponent <Stars>();
            }
            else if (child.name == "StarsMedium")
            {
                starsMedium = child.GetComponent <Stars>();
            }
            else if (child.name == "StarsFar")
            {
                starsFar = child.GetComponent <Stars>();
            }
        }
    }
Exemple #3
0
    void FixedUpdate()
    {
        if (score >= 1000)
        {
            BannerScript.UnlockTrophy("Endoplasmic reticulum");
        }

        if (GlobalVariables.arcadeMode == false)
        {
            if (numberofstingsdone >= 20)
            {
                CellGameplayScript.loadCase = 2;
                Set.SetAndEnterStatic(15);
            }
        }

        if (GlobalVariables.arcadeMode == true)
        {
            theLives.GetComponent <TMPro.TextMeshPro>().text = "LIVES: " + lives;
            if (lives < 1)
            {
                if (GlobalVariables.tutorial)
                {
                    Set.SetAndEnterStatic(5);
                }
                else
                {
                    ShowScore();
                }
            }
            if (numberofstingsdone >= neededstings)
            {
                TheLevel.GetComponent <TMPro.TextMeshPro>().text = "Level: " + level;
                neededstings += 5;
            }
            int tmp = (int)score;
            theScore.GetComponent <TMPro.TextMeshPro>().text = "SCORE: " + tmp.ToString();
        }
        else
        {
            theScore.GetComponent <TMPro.TextMeshPro>().text = "";
            TheLevel.GetComponent <TMPro.TextMeshPro>().text = "";
            theLives.GetComponent <TMPro.TextMeshPro>().text = "";
        }
    }
Exemple #4
0
    void Start()
    {
        // BannerScript.LockTrophy("Endoplasmic reticulum");

        amount       = 0;
        stingamount  = 0;
        fin          = false;
        score        = 0;
        bulletamount = 0;
        BulletAmount.GetComponent <TMPro.TextMeshPro>().text = "CGamp: " + bulletamount;
        theLives.GetComponent <TMPro.TextMeshPro>().text     = "LIVES: " + lives;
        TheLevel.GetComponent <TMPro.TextMeshPro>().text     = "LEVEL: " + level;
        if (GlobalVariables.arcadeMode == false)
        {
            TheLevel.SetActive(false);
            theScore.SetActive(false);
        }
        if (GlobalVariables.tutorial)
        {
            Click();
        }
    }
Exemple #5
0
 public TriviaLevel(TheLevel l, Arm a, GameObject[] Objects)
 {
     LevelToReturnTo = l;
     ToAddTo         = a;
     ToReadd         = Objects;
 }