void GetHitStatement() { if (!isDead) { if (!isStunned) { if (FoundPlayer) { _bossStatement = BOSSStatement.Boss_Attack_Statement; } else { _bossStatement = BOSSStatement.Boss_Ilde_Statement; } } else { _bossStatement = BOSSStatement.Boss_StunnedStatement; } } else { _bossStatement = BOSSStatement.Boss_DeadStatement; } }
// Function : SettingBasicInformation //Method : This Function is Mainly Used For Setting The Basic Information void SettingBasicInformation() { isDead = false; isStunned = false; DoAttack = false; AttackMaxTimer = Random.Range(1.4f, 2.6f); AttackCrtTimer = AttackMaxTimer; _bossStatement = BOSSStatement.Boss_Ilde_Statement; }
void SettingIldeUpdateMode() { if (!isDead) { if (!isStunned) { if (FoundPlayer) { _bossStatement = BOSSStatement.Boss_Attack_Statement; } } else { _bossStatement = BOSSStatement.Boss_StunnedStatement; } } else { _bossStatement = BOSSStatement.Boss_DeadStatement; } }
void SettingBossAttackStatement() { if (!isDead) { if (!isStunned) { if (FoundPlayer) { AttackCrtTimer -= Time.deltaTime; if (AttackCrtTimer <= 0) { DoAttack = true; } if (_BossHealthStatement.CrtHealth >= 250) { if (DoAttack) { int rand = Random.Range(0, 11); if (rand >= 0 && rand <= 8) { SettingAttackAnimationClip(Attack1TriggerAnimationClip, 3.5f, 5.4f); } else if (rand >= 9) { int randStrongAttack = Random.Range(0, 11); if (randStrongAttack >= 0 && randStrongAttack <= 5) { SettingAttackAnimationClip(Attack2TriggerAnimationClip, 3.5f, 5.4f); } else if (randStrongAttack >= 6) { SettingAttackAnimationClip(Attack3TriggerAnimationClip, 3.5f, 5.4f); } } } } else if (_BossHealthStatement.CrtHealth < 250) { if (DoAttack) { int rand = Random.Range(0, 11); if (rand >= 0 && rand <= 3) { SettingAttackAnimationClip(Attack1TriggerAnimationClip, 2.4f, 4.6f); } else if (rand >= 4 && rand <= 7) { SettingAttackAnimationClip(Attack2TriggerAnimationClip, 2.7f, 4.8f); } else if (rand >= 8) { SettingAttackAnimationClip(Attack2TriggerAnimationClip, 2.7f, 5.4f); } } } } else { _bossStatement = BOSSStatement.Boss_Ilde_Statement; } } else { _bossStatement = BOSSStatement.Boss_StunnedStatement; } } else { _bossStatement = BOSSStatement.Boss_DeadStatement; } }