SHARE
TWEET

Untitled

a guest Oct 16th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Class Anims
  2. {
  3. public const string anim1 = "someAnimation";
  4. }
  5.  
  6. Class SomeScript :monobehaviour
  7. {
  8. public string someAnimation = "theActualAnimationName";
  9.  
  10. ...
  11.     void foo
  12.     {
  13.        string toRun =
  14.        this.GetType().GetField(someAnimNamesEnumValue.ToString()).GetValue(this);
  15.     }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top