Help with object oriented
I'm making a runtime map editor that have a menu (GUI) of two types of blocks the wall blocks which are affected by gravity and the floor blocks that aren't affected by gravity but they also have many things in common my question is where and how to use inheritance and objects is this situation should the blocks script be extended from a parent class or just contain objects I'm pretty confused..
Based on your short description, it doesn't sound like you even need inheritance for this situation. It could easily be solved with prefabs. Since rigidbodies are the component used to add physics forces, just create one block prefab without a rigidbody (or a kinematic rigidbody) for the floors and another block prefab with a rigidbody.
$$anonymous$$aybe if you elaborate on what other functionality the blocks are supposed to have, it would be easier to see why you're considering inheritance at all.