private void Start() { // Mirror is kinda whack if (!hasAuthority) { Destroy(this); } Assert.IsNotNull(UiPrefab); uiInstance = Instantiate(UiPrefab); examineUi = uiInstance.GetComponent <ExamineUI>(); Assert.IsNotNull(examineUi); uiInstance.SetActive(false); }
private void Start() { // Mirror is kinda whack if (!hasAuthority) { Destroy(this); } Assert.IsNotNull(UiPrefab); uiInstance = Instantiate(UiPrefab); examineUi = uiInstance.GetComponent <ExamineUI>(); Assert.IsNotNull(examineUi); uiInstance.SetActive(false); selector = Camera.main.transform.GetChild(0).GetComponent <CompositeItemSelector>(); }