Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Class Anims
  2. {
  3. public const string anim1 = "someAnimation";
  4. }
  5.  
  6. Class SomeScript :monobehaviour
  7. {
  8. public string theActualAnimationName= "anim1";
  9.  
  10. ...
  11. void foo
  12. {
  13. //now what do i do?
  14. //string toRun = this.GetType().GetField(someAnimNamesEnumValue.ToString()).GetValue(this);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement