Example #1
0
 void nextScene()
 {
     foundAlvin  = planetGravityBody.FoundAlvin();
     foundRidi   = planetGravityBody.FoundRidi();
     foundTangie = planetGravityBody.FoundTangie();
     if (Application.loadedLevel == 2 && foundTangie && foundRidi && foundAlvin)
     {
         Debug.Log("DONE");
     }
 }
Example #2
0
    void OnTriggerEnter(Collider col)
    {
        foundAlvin = planetGravityBody.FoundAlvin();
        foundRidi  = planetGravityBody.FoundRidi();

        calcText();
        dialogue.checkConditions(3, numText);
        if (col.gameObject.tag == "Player" && col.GetType() == typeof(CapsuleCollider))
        {
            triggersIn++;
            if (triggersIn == 1)
            {
                if (foundRidi && foundTangie && foundAlvin)
                {
                    Application.LoadLevel(4);
                }
                lookAt = true;
                dialogue.showText();
                playerCol = true;
            }
        }
    }