void Awake() { if (instance != null) { Debug.LogWarning("More than 1 instance of Spell_Bar_UI"); return; } instance = this; }
// Use this for initialization void Start() { spellBar = Spell_Bar.instance; gameManager = GameManager.instance; playerInfo = Player_Information.instance; spellUI = Spell_Bar_UI.instance; enemyList = GameObject.FindGameObjectsWithTag("Enemy"); walkableTilemap = gameManager.walkableTilemap; wallTilemap = gameManager.wallTilemap; }