Skip to content

Instantly share code, notes, and snippets.

@gindemit
Created July 21, 2015 12:35
Show Gist options
  • 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