both of your class should have same initial name so i guess test1 in your case, you also do not need to inherit from monobehavior on your other file ( like test2) all your file using partial test1 will autaomatically inherit from it , which seem obvious as you deal with the same class anyway just divided into X number of file.