Unity Error Developing an Online Project

Asked

Viewed 45 times

0

How I fix this mistake?

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?

Man script this the second way

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

The version of my Unity is 4.3.2f1

1 answer

1

You need to add the reference to namespace in which his class PlayerBehaviour is in class Online.

Ex.:

using umNamespace;

public class Online {...}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.