Example #1
0
File: Tower.cs Project: Juutis/AKJ9
    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];
    }
Example #2
0
 public void Initialize()
 {
     hoverIndicator = Prefabs.Instantiate <HoverIndicator>();
     hoverIndicator.Initialize();
     hoverIndicator.transform.parent = transform;
 }