public void ChangeBackgroundColor() { GameManager.Type DeckType = StartingDeck.gameManager.DeckType; if (DeckType == GameManager.Type.WATER) { Background.color = new Color(38f / 255f, 191f / 255f, 215f / 255f); } else if (DeckType == GameManager.Type.FIRE) { Background.color = new Color(222f / 255f, 70f / 255f, 70f / 255f); } else if (DeckType == GameManager.Type.EARTH) { Background.color = new Color(104f / 255f, 81f / 255f, 39f / 255f); } else if (DeckType == GameManager.Type.AIR) { Background.color = new Color(150f / 255f, 150f / 255f, 150f / 255f); } }
private void Start() { gameManager = GameObject.Find("GameManager").GetComponent <GameManager>(); this.DeckType = gameManager.DeckType; }