Quantcast
Channel: Questions in topic: "javascripting"
Viewing all articles
Browse latest Browse all 105

how to fix menu button "play"

$
0
0
var play = false; var Developer = false; var Quit = false; var Camera1 : Camera; var Camera2 : Camera; var back = false; function OnMouseEnter() { GetComponent.().material.color = Color.red; } function OnMouseExit() { GetComponent.().material.color = Color.white; } function OnMouseUp() { if (Quit) { Application.Quit(); } else if (play) { Application.LoadScene (1); } else if (Developer) { Camera1.enabled = false; Camera2.enabled = true; } else if (back) { Camera1.enabled = true; Camera2.enabled = false; } Camera1.enabled = false; Camera2.enabled = true; } // when i push the button "play game" on main menu happens nothing // how to fix it?

Viewing all articles
Browse latest Browse all 105

Trending Articles



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