Created
July 21, 2015 12:35
-
-
Save gindemit/794170fb12f692c51b69 to your computer and use it in GitHub Desktop.
position as field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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