Requires a non-static variable

I’m coding some networking stuff, but that’s irrelevant to the question.
So int mv can’t be a public int because it requires a non-static variable, but I need to use mv in void OnPhotonPlayerConnected. So how do I use it in that and keep it a non-static variable for the rest of the code?

Access modifiers (public, internal, protected and private) have no relationship with static. Any of these combinations are valid. (C#)

public float myFloat;
internal float myFloat;
protected float myFloat;
private float myFloat;
public static float myFloat;
internal static float myFloat;
protected static float myFloat;
private static float myFloat;

Your question is poorly worded, so I can’t tell which one you are after.