Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

if boolean == true ...else...

$
0
0
Help with Syntax please!! Boolean is triggered once but never makes it to else or next part to be false: #pragma strict var animator : Animator; var myBool : boolean; function Start () { animator = GetComponent(Animator); } function OnMouseUp () { if (myBool == false) { animator.SetBool("myBool", true); } else { //if (myBool == true){ animator.SetBool("myBool", false); } }

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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