// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player"); this.entityMovement = GetComponent <EntityMovement>(); this.animator = GetComponent <Animator>(); projectileSpawner = GetComponent <BossProjectileSpawner>(); yProjectileOffset = -0.2f; xProjectileOffset = 3f; currentHealth = 10; maxHealth = 10; healthBar = GameObject.FindGameObjectWithTag("HealthBar"); healthBarScale = healthBar.transform.localScale; chargeSound = Resources.Load("Audio/boss_charge") as AudioClip; largeShootSound = Resources.Load("Audio/boss_shoot_large") as AudioClip; smallShootSound = Resources.Load("Audio/small_shoot_sound") as AudioClip; renderer = this.GetComponentInChildren <SkinnedMeshRenderer>(); PlayGamesPlatform.Activate(); Social.localUser.Authenticate((bool success) => { }); generateShield(); }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player"); this.entityMovement = GetComponent<EntityMovement>(); this.animator = GetComponent<Animator>(); projectileSpawner = GetComponent<BossProjectileSpawner>(); yProjectileOffset = -0.2f; xProjectileOffset = 3f; currentHealth = 10; maxHealth = 10; healthBar = GameObject.FindGameObjectWithTag("HealthBar"); healthBarScale = healthBar.transform.localScale; chargeSound = Resources.Load("Audio/boss_charge") as AudioClip; largeShootSound = Resources.Load("Audio/boss_shoot_large") as AudioClip; smallShootSound = Resources.Load("Audio/small_shoot_sound") as AudioClip; renderer = this.GetComponentInChildren<SkinnedMeshRenderer>(); PlayGamesPlatform.Activate(); Social.localUser.Authenticate((bool success) => { }); generateShield(); }