private void Start()
        {
            MapManager mapManager = MapManager.GetInstantiate();

            point = potentialPoints[Random.Range(0, potentialPoints.Count)];
            for (int i = 0; i < mapManager.ring.GetTiers().Count; i++)
            {
                for (int j = 0; j < mapManager.ring.GetTiers()[i].GetPoints().Count; j++)
                {
                    if (point == mapManager.ring.GetTiers()[i].GetPoints()[j])
                    {
                        point = mapManager.instanceRing.GetTiers()[i].GetPoints()[j];
                        break;
                    }
                }
            }
            mapManager.SetTier(mapManager.GetTierIndex(point));
            point.pointContainer.Add(this);
        }
Example #2
0
        private void Start()
        {
            MapManager mapManager = MapManager.GetInstantiate();

            for (int i = 0; i < mapManager.ring.GetTiers().Count; i++)
            {
                for (int j = 0; j < mapManager.ring.GetTiers()[i].GetPoints().Count; j++)
                {
                    if (point == mapManager.ring.GetTiers()[i].GetPoints()[j])
                    {
                        point = mapManager.instanceRing.GetTiers()[i].GetPoints()[j];
                        break;
                    }
                }
            }
            mapManager.SetTier(mapManager.GetTierIndex(point));
            point.pointContainer.Add(this);
            //
            CreateLeaseAction();
        }