// Use this for initialization
	public void Start () {
	
		sunTimer = gameTime;
		playerHealth = 3;
		hit = false;
		gameover = false;
		bc = gameObject.GetComponent<BuildingControl>();

		sl = GameObject.Find ("_SilverLiningSky").GetComponent<SilverLining>();
		sl.minutes = 0;

		sz = gameObject.GetComponent<SpawnZombie>();

	}
 void Update()
 {
     if (silverLining == null)
     {
         silverLining = (SilverLining)(GameObject.FindObjectOfType(typeof(SilverLining)));
     }
     if (silverLining != null)
     {
         Vector3 celestialPole = new Vector3(), vernalEquinox = new Vector3();
         silverLining.GetCelestialPole(ref celestialPole, ref vernalEquinox);
         if (flipVertical)
         {
             celestialPole = celestialPole * -1.0f;
         }
         if (flipHorizontal)
         {
             vernalEquinox = vernalEquinox * -1.0f;
         }
         gameObject.transform.LookAt(vernalEquinox, celestialPole);
     }
 }