// Use this for initialization void Start() { countdownTime = transitionTime; bossScript = boss.GetComponent <BossScriptTest>(); tempColor = image.color; tempColor.a = 0f; image.color = tempColor; musicBoxVolume = musicBox.volume; }
// Use this for initialization void Awake() { // INITIAL ATTACK DELAY DIRECTLY BELOW initialAttackDelay = 3.75f; if (this.player == null) { PlayerBehavior temp = FindObjectOfType <PlayerBehavior>(); this.player = temp.gameObject; } if (this.bossScript == null) { this.bossScript = FindObjectOfType <BossScriptTest>(); } HadesATK1FR = 8f; HadesATK1NF = Time.time + HadesATK1FR; HadesATK1_2FR = 13f; HadesATK1_2NF = Time.time + HadesATK1_2FR; ZeusATKFR = 2f; ZeusATKNF = Time.time + ZeusATKFR; KronosTongueATKFR = 3f; KronosTongueATKNF = Time.time + KronosTongueATKFR; ZeusBulletSpeed = 400; ZeusBulletLife = 3f; rand = new System.Random(); KronosMoveState = 1; credit = (GameObject)Instantiate(Credits, CreditsLocation.transform.position, CreditsLocation.transform.rotation); StartCredit = false; AttackZeus = true; }
// Use this for initialization void Awake() { moveRight = true; Direction = new Vector2(1, 0); speed = 0.08f; BigBombSpeed = 120f; if (this.player == null) { PlayerBehavior temp = FindObjectOfType <PlayerBehavior>(); this.player = temp.gameObject; } Attack1FR = 13f; Attack1NF = Time.time + Attack1FR; Attack1_2FR = 12.9f; Attack1_2NF = Time.time + Attack1_2FR; Attack2FR = 6f; Attack2NF = Time.time + Attack2FR; anim = gameObject.GetComponent <Animator>(); bossScript = GetComponent <BossScriptTest>(); firing = false; }