// Use this for initialization
 void Start()
 {
     Cursor.lockState = CursorLockMode.Locked;
     Cursor.visible = false;
     meshub = GameObject.Find("MessageHub").GetComponent<MessageHub>();
     meshub.setMesPos("playerpos",this.transform.position);
     meshub.setMesBool("gamedone", false);
     meshub.setMesBool("lost", false);
 }
    // Use this for initialization
    void Start()
    {
        meshub = GameObject.Find("MessageHub").GetComponent<MessageHub>();
        meshub.setMesPos("maxZombies", new Vector3((float)MaxZombies, 0, 0));

        meshub.setMesPos("amountZombies", new Vector3(0.0f,0,0));
        meshub.setMesBool("zombiereset", false);
        spawntime = Random.Range(minWait, maxWait);
    }