Ejemplo n.º 1
0
    void Start()
    {
        if (!overidePlayerShip)
            shipInfo = RaceSettings.playerShip;

        // disable all ships except for the ship to display
        for (int i = 0; i < ShipGMs.Length; ++i)
        {
            if (i == (int)shipInfo)
                ShipGMs[i].SetActive(true);
            else
                ShipGMs[i].SetActive(false);
        }

        // set ship description
        shipDesc.text = shipDescriptions[(int)shipInfo];

        // if there is no track set then load aciknovae normal
        if (RaceSettings.trackToLoad == "")
            RaceSettings.trackToLoad = "Aciknovae_Normal";

        // begin loading the level
        LoadLevel();
    }
Ejemplo n.º 2
0
 private GameObject LoadShip(E_SHIPS ship)
 {
     return(Instantiate(Resources.Load("Ships/" + ship.ToString()) as GameObject) as GameObject);
 }
Ejemplo n.º 3
0
 private GameObject LoadShip(E_SHIPS ship)
 {
     return Instantiate(Resources.Load("Ships/" + ship.ToString()) as GameObject) as GameObject;
 }