Error Unity Development of an Online Project

0

How do I fix this error?

  

Assets / Online / Online.cs (139,25): error CS0246: The type or namespace name 'PlayerBehaviour' could not be found. Are you missing a using directive or an assembly reference?

My script is the second way

PlayerBehaviour player = FindObjectOfType(typeof(PlayerBehaviour)) as PlayerBehaviour;

The version of my Unity is 4.3.2f1

    
asked by anonymous 13.10.2015 / 20:15

1 answer

1

You need to add the reference to namespace where your PlayerBehaviour class is in the Online class.

Ex:

using umNamespace;

public class Online {...}
    
13.10.2015 / 20:18