hi all need help with partial

hi so i was watching a video that was talking about partial and i wanted to try it out so i went to unity and tested it and i keep getting errors lol

script 1 test1

using UnityEngine;
using System.Collections;

partial class test1 : MonoBehaviour {

public int bob = 5;
}

script 2 test2

using UnityEngine;
using System.Collections;

partial class test2 : MonoBehaviour {

// Update is called once per frame
public void Update () {

}
partial void bob ()
{
string bob = “”;
}
}

error

Assets/Scripts/test2.cs(18,22): error CS0759: A partial method `test2.bob()’
implementation is missing a partial method declaration

does anybody know what im talking about

your class name are different, this can’t work…

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.

for method you can look here for few thing to be careful about
http://msdn.microsoft.com/en-us/library/6b0scde8.aspx