// Use this for initialization void Start() { if (cheat) { speed = 100; healthPhase1 = 1; healthPhase2 = 1; healthPhase3 = 1; } waitShootPhase3Count = 0; shieldColor = shield.GetComponent <SpriteRenderer>().color; explosionAnimator = explosion.GetComponent <Animator>(); explosionAnimator.enabled = false; explosion.GetComponent <SpriteRenderer>().enabled = false; //gameManager = GameObject.FindGameObjectWithTag("gameManager").GetComponent<gameManager>(); slider.maxValue = healthPhase1 + healthPhase2 + healthPhase3; powerUpPoped = false; bulletFactory = GameObject.FindGameObjectWithTag("BulletFactory").GetComponent <bulletFactory>(); ennemyFactory = GameObject.FindGameObjectWithTag("EnnemyFactory").GetComponent <ennemyFactory>(); }