// Use this for initialization void Start() { _endYScale = transform.localScale.y; transform.localScale = new Vector3(transform.localScale.x, 0.5f, transform.localScale.z); _radiusIndicators = new GameObject[2]; _radiusIndicators[0] = Instantiate(innerSphere, null); float inScale = inRadius * 2; _radiusIndicators[0].transform.localScale = new Vector3(inScale, 0.1f, inScale); //float halfScale = _endYScale / 2; _radiusIndicators[0].transform.position = transform.position; _radiusIndicators[1] = Instantiate(outerSphere, null); float outScale = outRadius * 2; _radiusIndicators[1].transform.localScale = new Vector3(outScale, 0.1f, outScale); _radiusIndicators[1].transform.position = transform.position; _built = false; _buildingPlacementManager = GameObject.FindGameObjectWithTag("MapManager").GetComponent <BuildingPlacementManager>(); }
private void Awake() { instance = this; }