Skip to content

Instantly share code, notes, and snippets.

@zapdot
Last active August 29, 2015 14:19
Show Gist options
  • Save zapdot/10bd29184a2ce765fe0f to your computer and use it in GitHub Desktop.
Save zapdot/10bd29184a2ce765fe0f to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class GoProxyProp<T>
{
public T property { get; set; }
public GoProxyProp( T startValue )
{
property = startValue;
}
}
@zapdot
Copy link
Author

zapdot commented Apr 16, 2015

I think "value" works a bit better too -- since it'd read something like:

GoProxyProp<float> someProgress;
//...
someProgress.value = 5;

@rygo6
Copy link

rygo6 commented Apr 17, 2015

Ok I agree with all that. How does this work then for you merging? Is there a way to merge this gist into the pull request? Or do you reject my request, I add this in, and then make a new request? I've not seen anyone make a code gist like this before from a pull request.

@zapdot
Copy link
Author

zapdot commented Apr 22, 2015

You handled it properly, this was just for a side conversation. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment