Quantcast
Channel: Questions in topic: "tagging"
Viewing all articles
Browse latest Browse all 120

What is the problem with this script?

$
0
0
I want if I click on my object it to change tags in both ways but only does on one way. I want both Respawn-> Player and the opposite but it can only go one way- if it switches to Player it can't go back to Respawn Script: using UnityEngine; using System.Collections; void OnMouseDown() { if (gameObject.tag == "Player") { gameObject.tag = "Respawn"; } }

Viewing all articles
Browse latest Browse all 120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>