Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     GM         = GameObject.Find("GM");
     formData   = GM.GetComponent <sendDataToForm>();
     currentAMT = 0;
     updateCurrency();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     formData  = GameObject.Find("GM").GetComponent <sendDataToForm>();
     pathData  = gameObject.GetComponent <mapTraversalAttacker>();
     renderers = GetComponentsInChildren <Transform>(true);
     renderers[2].gameObject.SetActive(true);
     locationsVisited = new Stack <string>();
     redsPassed       = new Stack <string>();
 }
Exemplo n.º 3
0
 void Start()
 {
     GM          = GameObject.Find("GM");
     dataHandler = GM.GetComponent <sendDataToForm>();
     currentMap  = GM.GetComponent <Graph>();
     pathData    = new Stack <string>();
     correctPath = new Stack <string>();
     setRandomID();
     selectCurrentPath();
 }
Exemplo n.º 4
0
 void Start()
 {
     spawns        = new Transform[0];
     formData      = gameObject.GetComponent <sendDataToForm>();
     helper        = gameObject.GetComponent <jsonDataHelper>();
     waveCountDown = timeBetweenWaves;
     state         = SpawnState.WAITING;
     panel.SetActive(true);
     text.text  = "Prepare Defenses";
     text2.text = "Click on X Tiles to add defenses. Click Continue to begin new round!";
     editMode   = true;
 }
Exemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     GM         = GameObject.Find("GM");
     health     = GM.GetComponent <GameObjectHolder>().HealthAndCurrency.GetComponent <healthBar>();
     formData   = GM.GetComponent <sendDataToForm>();
     pathHolder = gameObject.GetComponent <mapTraversal>();
     renderers  = GetComponentsInChildren <Transform>(true);
     renderers[1].gameObject.SetActive(true);
     locationsVisited = new Stack <string>();
     redsPassed       = new Stack <string>();
     orangesPassed    = new Stack <string>();
 }
Exemplo n.º 6
0
 void Start()
 {
     GM               = GameObject.Find("GM");
     stepCounter      = 0;
     success          = false;
     pathData         = new Stack <string>();
     correctPath      = new Stack <string>();
     attackerIdentity = gameObject.GetComponent <identityHandler>();
     healthCTRL       = GM.GetComponent <GameObjectHolder>().HealthAndCurrency;
     gameHealth       = healthCTRL.GetComponent <healthBar>();
     dataHandler      = GM.GetComponent <sendDataToForm>();
     currentMap       = GM.GetComponent <Graph>();
     setRandomID();
     next = currentMap.getStartingPath(transform.position);
     Debug.Log(next);
 }
Exemplo n.º 7
0
    private void Start()
    {
        handler        = GameObject.Find("userData").GetComponent <jsonDataHandler>();
        gameMap        = gameObject.GetComponent <Graph>();
        gameCTRL       = gameObject.GetComponent <waveHandler>();
        gameData       = gameObject.GetComponent <sendDataToForm>();
        gameComponents = gameObject.GetComponent <GameObjectHolder>();
        money          = gameComponents.HealthAndCurrency.GetComponent <currencyCounter>();
        fillMapWithPoints();
        initializeMapSettings();

        if (handler.currentMapIndex == handler.data.maps.Count - 1)
        {
            restartOrNewMap.text = "Restart";
        }
        else
        {
            restartOrNewMap.text = "Next Map";
        }
    }
Exemplo n.º 8
0
 private void Start()
 {
     formData = GameObject.Find("GM").GetComponent <sendDataToForm>();
 }