Skip to content

Instantly share code, notes, and snippets.

@gindemit
Created July 21, 2015 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gindemit/794170fb12f692c51b69 to your computer and use it in GitHub Desktop.
Save gindemit/794170fb12f692c51b69 to your computer and use it in GitHub Desktop.
position as field
namespace My
{
class GameObject
{
public Transform transform;
}
class Transform
{
public Vector3 position;
}
class TestClass
{
void SomeMethod()
{
GameObject go = new GameObject();
go.transform.position.x = 20;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment