Skip to content

Instantly share code, notes, and snippets.

@gotwig
Created July 4, 2015 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gotwig/ced204787a7263d62347 to your computer and use it in GitHub Desktop.
Save gotwig/ced204787a7263d62347 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class asdasd : MonoBehaviour {
public Animation test;
void Start(){
test["open"].wrapMode = WrapMode.Once;
test["close"].wrapMode = WrapMode.Once;
test.Play("open");
test.Play("close");
}
void Update(){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment