Ejemplo n.º 1
0
    private void Start()
    {
        player    = SessionCache.Cache.CurrentPlayer;
        spaceship = new Spaceship(new SpaceshipType(), spaceshipGameObject);
        /// send message here to set up amount of health in other script. If we want to controll this parameter from this class,
        /// we can add another message from damageController class.
        SendMessage("setHealth", spaceship.Health, SendMessageOptions.DontRequireReceiver);

        levelInspector = GlobalManagerInstance.GetLevelInspector();
    }
Ejemplo n.º 2
0
 private void OnTriggerEnter(Collider other)
 {
     Debug.Log(other.gameObject.tag);
     if (other.gameObject.tag == BFB.Cache.Tags.asteroid)
     {
         peopleAlive -= dPeopleDead;
     }
     if (peopleAlive <= 0)
     {
         GlobalManagerInstance.GetLevelInspector().OnPlayerDestroyed();
     }
 }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        levelInspector = GlobalManagerInstance.GetLevelInspector();

        crawling = true;
        creds   += "In the distant future . . . \n";
        creds   += " (well not really that distant)\n";
        creds   += "Earth is visited by \n";
        creds   += "extraterrestrial beings from \n";
        creds   += "a galaxy far, far away. \n";
        creds   += "The people of Earth welcome \n";
        creds   += "these beings, hoping to learn\n";
        creds   += "more about the universe. But \n";
        creds   += "shortly after making first \n";
        creds   += "contact with the aliens,\n";
        creds   += "THIS happened\n";
        gameObject.guiText.text = creds;
    }
Ejemplo n.º 4
0
 void Start()
 {
     levelInspector = GlobalManagerInstance.GetLevelInspector();
     text           = levelInspector.GetCurrentBriefingText();
 }
Ejemplo n.º 5
0
 void Start()
 {
     Screen.showCursor = true;
     levelInspector    = GlobalManagerInstance.GetLevelInspector();
 }
Ejemplo n.º 6
0
 void Start()
 {
     levelInspector = GlobalManagerInstance.GetLevelInspector();
 }
Ejemplo n.º 7
0
 void DestroyObject(GameObject collidedObject)
 {
     Destroy(gameObject);
     GlobalManagerInstance.GetLevelInspector().OnPlayerDestroyed();
 }