void evalPossibleBuildings() { Buildable buildable = gameObject.GetComponent <Buildable>(); if (buildable != null) { master.fillBuildSlots(buildable.possibleBuildings()); } else { Debug.Log(gameObject.name + " is not buildable"); } }