Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEngine.SceneManagement;
  3. using System.Collections;
  4.  
  5.  
  6. public class LoadShied : MonoBehaviour {
  7.  
  8. Animator anim;
  9.  
  10.  
  11.  
  12. // Use this for initialization
  13. void Start () {
  14.  
  15. anim = GetComponent<Animator>();
  16. }
  17.  
  18. // Update is called once per frame
  19. void Update () {
  20.  
  21. }
  22. public void LoadScenez()
  23. {
  24. anim.SetInteger("State", 1);
  25. UnityEngine.SceneManagement.SceneManager.LoadScene("Scene2");
  26.  
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement