Example #1
0
        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;
        }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     iceB = GetComponentInParent <IceBlockBreaking>();
     boss = FindObjectOfType <BoneDragonController>();
     isVolstaggHidding = false;
     player            = FindObjectOfType <PlayerHealthManager>();
 }
Example #3
0
 // 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>();
 }
Example #4
0
 // Start is called before the first frame update
 void Start()
 {
     playerHealth = FindObjectOfType <PlayerHealthManager>();
     anim         = GetComponent <Animator>();
 }
Example #5
0
 private void Start()
 {
     player      = FindObjectOfType <PlayerHealthManager>();
     hitedPlayer = false;
     boss        = FindObjectOfType <BoneDragonController>();
 }