Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     iceB = GetComponentInParent <IceBlockBreaking>();
     boss = FindObjectOfType <BoneDragonController>();
     isVolstaggHidding = false;
     player            = FindObjectOfType <PlayerHealthManager>();
 }
Пример #2
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>();
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     once                = false;
     currentHealth       = health;
     anim                = GetComponent <Animator>();
     boss                = GetComponent <BoneDragonController>();
     boss_SpriteRenderer = GetComponent <SpriteRenderer>();
     boss_buffer         = boss_SpriteRenderer.color;
     takingDamage        = false;
 }
Пример #4
0
 private void Start()
 {
     if (PlayerDeath.scene.Equals("Scene2D"))
     {
         tutorial      = 1;
         keyController = FindObjectOfType <KeyController>();
     }
     else if (PlayerDeath.scene.Equals("BossPhase"))
     {
         tutorial = 4;
         boss     = FindObjectOfType <BoneDragonController>();
     }
 }
Пример #5
0
 // Start is called before the first frame update
 void Start()
 {
     boss = FindObjectOfType <BoneDragonController>();
 }
Пример #6
0
 private void Start()
 {
     player      = FindObjectOfType <PlayerHealthManager>();
     hitedPlayer = false;
     boss        = FindObjectOfType <BoneDragonController>();
 }