Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var spawner : GameObject;
- var num : float = 0;
- function Update () {
- if(num == 1){
- spawner.SetActive(true);
- }
- else{
- spawner.SetActive(false);
- }
- }
- function OnMouseEnter(){
- num = 1;
- }
- function OnMouseExit(){
- num = 0;
- }
Add Comment
Please, Sign In to add comment