I'm working in C# in Unity3D. I want to be able to use the Math class and the functions it has , particularly the absolute value function/Math.Abs , but when I try to import the Math class by typing: "using System.Math" it does not work and says that 'System.Math' is not a namespace.
Another issue I am having is keeping track of the coordinates of the player and the enemy models on screen. I come from an ActionScript background so normally I would simply be able to use "this.x" "objectName.x" and similar pieces of code. However, this doesn't appear to be the same for C#/Unity. Is there a way to directly access the coordinates of an object? I tried using this.x, gameObject.position.x, but that doesn't work.
Thanks.