private void RunAI() { currentDelayBetweenAttacks = 0; if (bossAttacks == BossAttacks.GiantSmash1) { smashCount = 0; animator.enabled = true; animator.Play("GiantSmash"); bossAttacks = BossAttacks.GiantSmash2; } else if (bossAttacks == BossAttacks.GiantSmash2) { smashCount = 0; animator.enabled = true; animator.Play("GiantSmash"); bossAttacks = BossAttacks.GiantPound; } else if (bossAttacks == BossAttacks.GiantPound) { animator.enabled = true; maxSmashCount++; animator.Play("GiantPound"); bossAttacks = BossAttacks.GiantSmash1; } }
// Use this for initialization void Start() { animator = GetComponent <Animator>(); gameManager = GameObject.Find("GameManager").GetComponent <GameManager>(); attackScript = GetComponent <BossAttacks>(); attackScript.AttackFinishedEvent += AttackScript_AttackFinishedEvent; }
void Start() { hp = this.GetComponent <BreakableObject>(); bAttacks = this.GetComponent <BossAttacks>(); SetStats(); //wouter StartMusic MusicGameplayNonLineair.start(); }
public int averageManaCost = 20; //Average price for mana ability, used to select shields #endregion #region Initialisation // Use this for initialization void Start() { //Getting script information attackList = GetComponent <BossAttacks>(); bossStats = GetComponent <Stats>(); playerScript = GameObject.FindGameObjectWithTag("Player").GetComponent <PF_Player>(); //Adding initial past action pastBossActions.Add(BossActions.None); }
protected void Awake() { _characterController = GetComponent<CharacterController>(); _bossAttacks = GetComponent<BossAttacks>(); Instance = this; Alive = true; _health = _maxHealth; }
private void Start() { BA = GetComponent <BossAttacks>(); }