Beispiel #1
0
        private void Start()
        {
            canvas.worldCamera = TheCamera.GetCamera();

            if (!TheGame.IsMobile() && ItemSelectedFX.Get() == null && AssetData.Get().item_select_fx != null)
            {
                Instantiate(AssetData.Get().item_select_fx, transform.position, Quaternion.identity);
            }

            PlayerUI gameplay_ui = GetComponentInChildren <PlayerUI>();

            if (gameplay_ui == null)
            {
                Debug.LogError("Warning: Missing PlayerUI script on the Gameplay tab in the UI prefab");
            }
        }
Beispiel #2
0
 void Awake()
 {
     _instance = this;
     icon_group.SetActive(false);
     title.enabled = false;
 }