public void AttackL() { if (bossHandL != null) { bossHandL.animator.SetBool("isReady", true); bossHandL = 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; }