GetMousebuttonDown unity
if (Input.GetMouseButtonDown(1))
//This is too stop spaming the gun
GetMousebuttonDown unity
if (Input.GetMouseButtonDown(1))
//This is too stop spaming the gun
OnMousedown unity ui
public class Combat_spell : MonoBehaviour, IPointerClickHandler,
IPointerExitHandler, IPointerEnterHandler
{
public void OnPointerClick(PointerEventData eventData)
{
UseSpell();
}
public void OnPointerEnter(PointerEventData eventData)
{
Scene_Main.display_Description("Frappe", "Inflige 5 à 7 dégats", 3, -2, this.transform.position, 3);
}
public void OnPointerExit(PointerEventData eventData)
{
Scene_Main.display_Description_Erase();
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us