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