Exemple #1
0
        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);
        }
Exemple #2
0
        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>();
        }