void Start() { direction = 1; healthManager = GetComponent <BossHealthManager>(); player = FindObjectOfType <PlayerHealthManager>(); dragonRB = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); point = null; dragonFlying = false; iceballCoolDown = 0f; iceballTimeCoolDown = 0f; fbCreated = false; roarCoolDown = 0f; roarTimeCoolDown = 0f; roar = false; roarForceDecrese = 0f; airCoolDown = 0f; airStrikeCount = 0; airStriking = false; airAttackPoint = null; shrink = false; }
// Start is called before the first frame update void Start() { iceB = GetComponentInParent <IceBlockBreaking>(); boss = FindObjectOfType <BoneDragonController>(); isVolstaggHidding = false; player = FindObjectOfType <PlayerHealthManager>(); }
// Start is called before the first frame update void Start() { iceBlockHit = false; fireRB = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); SoundManagerScript.PlaySound("fireballLaunch"); fbCreated = true; dragon = FindObjectOfType <BoneDragonController>(); playerHealth = FindObjectOfType <PlayerHealthManager>(); }
// Start is called before the first frame update void Start() { playerHealth = FindObjectOfType <PlayerHealthManager>(); anim = GetComponent <Animator>(); }
private void Start() { player = FindObjectOfType <PlayerHealthManager>(); hitedPlayer = false; boss = FindObjectOfType <BoneDragonController>(); }