Hello,
This might be a very noob question but I have stuck on this problem. Suppose I have a script called
"HelloWorld. cs" inside a custom package and is inside the Packages folder.
namespace Example. HelloWorld (This is inside the Packages folder)
{
public class Example
{
void DoSomething()
{
//just for example I am not using FIndobject of Type
FindObjectOfType.ItsDone();
}
}
}
The other class looks like this (This is inside the Assets folder):
using Example.HelloWorld;
public class Example2
{
public void ItsDone();
}
This is not possible as I cannot refer the Example2 class. This might be a noob question but is there any better optimized way to do this or how to do it correctly.
↧