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"); } }
void Awake() { _instance = this; icon_group.SetActive(false); title.enabled = false; }