private void Start() { mainCamera = Camera.main; buildingCollider = building.GetComponent <BoxCollider>(); player = NetworkClient.connection.identity.GetComponent <RTSPlayer>(); iconImage.sprite = building.GetIcon(); priceText.text = building.GetPrice().ToString(); unitSelection = FindObjectOfType <UnitSelectionHandler>(); }
public override void OnStartAuthority() { unitSelectionHandler = GameObject.Find("UnitHandlers").GetComponent <UnitSelectionHandler>(); }