Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.SceneManagement;
- using System.Collections;
- public class LoadShied : MonoBehaviour {
- Animator anim;
- // Use this for initialization
- void Start () {
- anim = GetComponent<Animator>();
- }
- // Update is called once per frame
- void Update () {
- }
- public void LoadScenez()
- {
- anim.SetInteger("State", 1);
- UnityEngine.SceneManagement.SceneManager.LoadScene("Scene2");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement