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.

31 lines
520 B

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. using UnityEngine;
  2. using System.Collections;
  3. public class playerId : MonoBehaviour {
  4. public bool idVanish = true;
  5. public GameObject idTag;
  6. // Use this for initialization
  7. void Start () {
  8. }
  9. // Update is called once per frame
  10. void Update () {
  11. transform.eulerAngles = new Vector3 (transform.eulerAngles.x, 180, transform.eulerAngles.z);
  12. if (Input.GetKeyDown (KeyCode.Backspace)) {
  13. idVanish = !idVanish;
  14. idTag.gameObject.SetActive (idVanish);
  15. Debug.Log ("player ID false");
  16. }
  17. }
  18. }