//次の押下判定時間 //float nextTimeL = 0f; //float nextTimeR = 0f; //float nextTimeF = 0f; //float nextTimeBk = 0f; //float nextTimeRR = 0f; //float nextTimeRL = 0f; ////押下状態 //public bool pressedL; //public bool pressedR; //public bool pressedF; //public bool pressedBk; //public bool pressedRR; //public bool pressedRL; //ボタンのアタッチ public void setPlayer(GameObject player1, GameObject player2) { this.p1player = player1; p1pBodybehaviour = p1player.GetComponent <Bodybehaviour>(); this.p2player = player2; p2Bodybehaviour = p2player.GetComponent <Bodybehaviour>(); }
public void OnBbuttonDown(Bodybehaviour pBodybehaviour) { pBodybehaviour.AttackTrigger(false); }
//public void OnRLbuttonDown() //{ // pressedRL = true; // nextTimeRL = Time.realtimeSinceStartup + intervalAction; //} //public void OnRLbuttonUp() //{ // pressedRL = false; //} public void OnAbuttonDown(Bodybehaviour pBodybehaviour) { pBodybehaviour.AttackTrigger(true); }