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.

20 lines
399 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. void Update(){
  8. if (this.animator.GetCurrentAnimatorStateInfo (0).IsName ("turnOnGui")) {
  9. crossHair.SetActive(true);
  10. cameraOutline.SetActive(true);
  11. gameObject.SetActive (false);
  12. }
  13. }
  14. }