private void Start() { distanceIndicator = Prefabs.Instantiate <HoverIndicator>(); distanceIndicator.transform.parent = transform; distanceIndicator.Initialize(); distanceIndicator.SetSize(maxDistance); towerMesh = GetComponentInChildren <TowerMesh>(); firingTimer = firingInterval + 1f; setReferences(transform); origMaterial = towerTopRenderer.materials[1]; }
public void Initialize() { hoverIndicator = Prefabs.Instantiate <HoverIndicator>(); hoverIndicator.Initialize(); hoverIndicator.transform.parent = transform; }