|
|
- using UnityEngine;
- using System.Collections;
-
- public class playerId : MonoBehaviour {
- public bool idVanish = true;
- public GameObject idTag;
-
- // Use this for initialization
- void Start () {
-
- }
-
- // Update is called once per frame
- void Update () {
-
- transform.eulerAngles = new Vector3 (transform.eulerAngles.x, 180, transform.eulerAngles.z);
-
-
- if (Input.GetKeyDown (KeyCode.Backspace)) {
- idVanish = !idVanish;
-
- idTag.gameObject.SetActive (idVanish);
-
- Debug.Log ("player ID false");
- }
-
-
-
-
- }
- }
|