void Awake() { GameRegistry.AssignSpellDatabase(this); foreach (var spell in spells) { if (spell.Prefab != null) { Debug.Log("Bound prefab to database"); spell.Prefab.GetComponent <Castable> ().BindCastableToSpell(spell); } } }