Hello, I purchased a book called C# 5.0 All - In - One For Dummies.
It seems like a great book, but its based in Visual Studio Express and I have heard there is quite a few things that you cannot use the same in unity.
Like namespaces I’ve heard frequently as broken or unrecognized.
I’ve been trying to find info on what specific C# built in methods or classes for Visual Studio type editors covered in a book like this that I need to highlight as:
N/A for unity / monodevelop
It is very important to be able to access info from other scripts. An example of doing so would be
public class gameController : MonoBehaviour {
public dataPass persistance;
void Start ()
{
persistance = GameObject.Find("Persistance").getComponent("dataPass") as dataPass;
//You now have control of that other game object's script
persistance.myBool = true;
}
void Update ()
{
if (Input.getKeyUp(Keycode.Space))
persistance.myBool = false;
}
}