unity only one component type
Code Example - unity only one component type
[DisallowMultipleComponent]
[DisallowMultipleComponent]