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!
Thanks!
void OnEntityBuilt(Planner plan, GameObject go)
{
var bb = go.GetComponent<BuildingBlock>();
if(bb){
// do stuff
}
}