Getting BuildingBlock from Gameobject?
Hi im trying to use the hook OnEntityBuilt. I see it returns the planner game object and gameObject placed. How can i get the buildingblock object from the game object.
Thanks!
GetComponent is the best way I think.
void OnEntityBuilt(Planner plan, GameObject go)
{
    var bb = go.GetComponent<BuildingBlock>();

    if(bb){
         // do stuff
    }
}​
Thank you very much for your help. I'll give it a go!