Exemple #1
0
    // Use this for initialization
    void Start()
    {
        weapon = 1;
        dialog = GameObject.FindGameObjectWithTag("DialogMngr");
        script = new List <string>();
        script.Add("Cutscene0");
        script.Add("Cutscene1");


        script.Add("Cutscene2");


        script.Add("Cutscene3");

        script.Add("Cutscene4");

        script.Add("Cutscene5");

        script.Add("Cutscene6");

        script.Add("Cutscene7");

        script.Add("Cutscene8");

        script.Add("Cutscene9");
        us    = GameObject.Find("__app").GetComponent <UniversalSettings> ();
        style = us.style;
    }
Exemple #2
0
    // Use this for initialization
    public void Start()
    {
        us      = GameObject.Find("__app").GetComponent <UniversalSettings> ();
        mapFile = us.mapfile;
        once    = true;
        weapons = new GameObject[4];
        ES_P1   = EventSystem.current;

        //Hnadful= Deck
        //Pass Deck In from Overworld Scene
        //Placeholder Fils Deck with Lighnin and Eart Spells
        buildDeck();

        //creates the map
        instantiateMap();


        player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player> ();

        // Retrieves the references to the alkl ofthe UI elements.
        getUI();

        //Updates the lists of enemies, spells, and obstacles to be used in the battle.
        updateEnemyList();
        updateSpellList();
        updateObstacleList();

        if (GameObject.Find("OverPlayer") != null)
        {
            player.weapon = GameObject.Find("OverPlayer").GetComponent <OverPlayer>().weapon;
        }

        //Selects and enables the cooresponding UI based on the character
        chooseGun(player.weapon, false);
    }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     ES             = EventSystem.current;
     menuObjects    = GameObject.FindGameObjectsWithTag("Menu");
     pvpMenuObjects = GameObject.FindGameObjectsWithTag("PVP Menu");
     menu           = true;
     pvpMenu        = false;
     change         = false;
     us             = GameObject.Find("__app").GetComponent <UniversalSettings> ();
 }
Exemple #4
0
 // Use this for initialization
 void Start()
 {
     filterDisplay     = GameObject.Find("Filter Display").GetComponent <Text> ();
     volumeDisplay     = GameObject.Find("Volume Display").GetComponent <Text> ();
     fullScreenDisplay = GameObject.Find("Full Screen Display").GetComponent <Text> ();
     playStyleDisplay  = GameObject.Find("Style Display").GetComponent <Text> ();
     otv          = GameObject.Find("Main Camera").GetComponent <OLDTVTube> ();
     us           = GameObject.Find("__app").GetComponent <UniversalSettings> ();
     changeVolume = false;
 }
Exemple #5
0
 // Use this for initialization
 void Start()
 {
     otv = this.gameObject.GetComponent <OLDTVTube>();
     us  = GameObject.Find("__app").GetComponent <UniversalSettings> ();
 }