Created
October 6, 2016 05:49
-
-
Save yoshapihoff/f3bcc701c6942a5f6669cf17a78a3b95 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| public class CacheComponent: MonoBehaviour | |
| { | |
| Transform thisTransform; | |
| public new Transform transform | |
| { | |
| get | |
| { | |
| if (thisTransform == null) | |
| { | |
| thisTransform = base.transform; | |
| } | |
| return thisTransform; | |
| } | |
| } | |
| void Update() | |
| { | |
| transform.Translate(0, 0, 5); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment