public void AttackR() { if (bossHandR != null) { bossHandR.animator.SetBool("isReady", true); bossHandR = null; } }
public void Ready() { GameObject temp = Instantiate(pbHandL, transform); temp.transform.localPosition = posL.localPosition; bossHandL = temp.GetComponent <BossHandL>(); bossHandL.centerPosition = posL.localPosition; bossHandL.heartBoss = this; temp = Instantiate(pbHandR, transform); temp.transform.localPosition = posR.localPosition; bossHandR = temp.GetComponent <BossHandR>(); bossHandR.centerPosition = posR.localPosition; bossHandR.heartBoss = this; }