using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AttackTip : MonoBehaviour
{
public GameObject JinGangAttackTip;
public int TapI;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetButtonDown("AttackTip"))
{
TapI++;//摁下按键数值+1
}
if (TapI == 1)
{
JinGangAttackTip.active = true;//为一则显示
}
else
{
JinGangAttackTip.active = false;//不为一不显示
TapI = 0;//归零
}
}
}