You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
455 B

  1. using UnityEngine;
  2. using System.Collections;
  3. public class camAnimController : MonoBehaviour {
  4. public GameObject crossHair;
  5. public GameObject cameraOutline;
  6. public Animator animator;
  7. public GameObject sparks;
  8. void Update(){
  9. if (this.animator.GetCurrentAnimatorStateInfo (0).IsName ("turnOnGui")) {
  10. crossHair.SetActive(true);
  11. cameraOutline.SetActive(true);
  12. sparks.SetActive (true);
  13. gameObject.SetActive (false);
  14. }
  15. }
  16. }