Created
October 6, 2016 05:49
-
-
Save yoshapihoff/f3bcc701c6942a5f6669cf17a78a3b95 to your computer and use it in GitHub Desktop.
Revisions
-
yoshapihoff created this gist
Oct 6, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ 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); } }