Пример #1
0
        private void RemapWorldSetup(bool automatic)
        {
            if (automatic)
            {
                GenerateWorld(true, true);
            }
            else if (World.Instance)
            {
                GenerateWorldMiningBattle();
            }

            seekerManager = GetComponent <SeekerMovementManager>();
            seekerManager.Setup(this, worldData);

            foreach (Transform field in transform.GetChild(0).transform)
            {
                field.gameObject.SetActive(false);
            }
        }
Пример #2
0
        private void RemapWorldSetup(bool automatic)
        {
            if (automatic)
            {
                GenerateWorld(true, true);
            }
            else
            {
                GenerateWorldManualExample();
            }


            seekerManager = GetComponent <SeekerMovementManager>();
            seekerManager.Setup(this, worldData);

            foreach (Transform field in transform.GetChild(0).transform)
            {
                field.gameObject.SetActive(false);
            }

            // manual example
            //FindPath(worldData.worldAreas[4].tileGrid[5][2], new List<Seeker>() { GameObject.Find("UnitHolder").transform.GetChild(0).GetComponent<Seeker>() });
        }