Actually, I got kind of impatient and didn't want to wait any longer so I took what I already know and made this script.
#pragma strict
public var ATBB = false;;
public var B = false;
function Start () {
ATBB = false;
B = false;
}
function Update () {
if(ATBB){
if(Input.GetMouseButtonDown(0)){
B = true;
}
}
if(B){
renderer.material.color = Color.clear;
}
}
function OnMouseEnter(){
ATBB = true;
}
function OnMouseExit(){
ATBB = false;
}
↧