void Start() { useGUILayout = false; dimmer = GameObject.Find("Dimmer").GetComponent <DimAnimate>(); displayCardCanvas = GameObject.FindGameObjectWithTag("displaycard").GetComponent <DisplayCardCanvas>(); MeshRenderer deckText = GameObject.Find("Deck count").GetComponent <MeshRenderer>(); deckText.sortingLayerName = "PlayBoard bg"; deckText.sortingOrder = 1; }
void Start() { useGUILayout = false; dimmer = GameObject.Find ("Dimmer").GetComponent<DimAnimate>(); displayCardCanvas = GameObject.FindGameObjectWithTag("displaycard").GetComponent<DisplayCardCanvas>(); MeshRenderer deckText = GameObject.Find("Deck count").GetComponent<MeshRenderer>(); deckText.sortingLayerName = "PlayBoard bg"; deckText.sortingOrder = 1; }