示例#1
0
    void evalPossibleBuildings()
    {
        Buildable buildable = gameObject.GetComponent <Buildable>();

        if (buildable != null)
        {
            master.fillBuildSlots(buildable.possibleBuildings());
        }
        else
        {
            Debug.Log(gameObject.name + " is not buildable");
        }
    }