Beispiel #1
0
 private void Start()
 {
     rend       = GetComponent <Renderer>();
     startColor = rend.material.color;
     offset     = rend.bounds.size.y / 2f;
     tbSelector = FindObjectOfType <TowerBlueprintSelector>();
     //towerBlueprint = null;
 }
 void Start()
 {
     tbSelector = FindObjectOfType <TowerBlueprintSelector>();
     if (tbSelector == null)
     {
         Debug.LogError("No TbSelector was found for the HotKey handler");
     }
 }