Пример #1
0
 // Use this for initialization
 void Start()
 {
     GM         = GameObject.Find("GM");
     formData   = GM.GetComponent <sendDataToForm>();
     currentAMT = 0;
     updateCurrency();
 }
Пример #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>();
 }
Пример #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();
 }
Пример #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;
 }
Пример #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>();
 }
Пример #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);
 }
Пример #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";
        }
    }
Пример #8
0
 private void Start()
 {
     formData = GameObject.Find("GM").GetComponent <sendDataToForm>();
 }