コード例 #1
0
ファイル: OverPlayer.cs プロジェクト: sml5527/Hexshooter
    // 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;
    }
コード例 #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);
    }
コード例 #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> ();
 }
コード例 #4
0
ファイル: OptionsMenu.cs プロジェクト: sml5527/Hexshooter
 // 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;
 }
コード例 #5
0
 // Use this for initialization
 void Start()
 {
     otv = this.gameObject.GetComponent <OLDTVTube>();
     us  = GameObject.Find("__app").GetComponent <UniversalSettings> ();
 }