Hey I’m trying to create a chat system with an NPC (Non playable character), but Like with my other scripts run into problems I am not qualified to solve (Not enough experience). I followed a tutorial but I get an error message saying:
‘Assets/Script/NPC.cs(1,6): error CS0116: A namespace can only contain types and namespace declarations’
‘Assets/Script/NPC.cs(3,6): error CS0116: A namespace can only contain types and namespace declarations’
and
‘Assets/Script/NPC.cs(7,6): error CS0116: A namespace can only contain types and namespace declarations’
This. We like typing out extra words in C#. If you want a less verbose language try UnityScript. Trouble is the documentation for UnityScript doesn’t have many words in it either.
just wanted to ask if class deceleration is hidden in js how to people use features like class attributes inheretence declaring non classed like structs (globally) and blabla. I feel great that I left js before getting serious
Assets/Script/NPC.cs(1,26): error CS0246: The type or namespace name `MonoBehaviour’ could not be found. Are you missing a using directive or an assembly reference?