void Start()
 {
     GameObject alternativMUDClient = GameObject.FindWithTag ("AlternativMUDClient");
     if (alternativMUDClient != null) {
         guiLoginPanelScript = alternativMUDClient.GetComponent<GUILoginPanel>();
     } else {
         Debug.LogWarning ("RotateCameraByMouseY: Cannot find by tag: #AlternativMUDClient");
     }
 }
    void Start()
    {
        GameObject alternativMUDClient = GameObject.FindWithTag ("AlternativMUDClient");
        if (alternativMUDClient != null) {
            guiLoginPanelScript = alternativMUDClient.GetComponent<GUILoginPanel>();
        } else {
            Debug.LogWarning ("PlayerMovement: Cannot find by tag: #AlternativMUDClient");
        }

        /*for(int i = 0;i<4; i++) {
            aniBody.clip = anim.idle;
            aniBody.Play ();
        }*/
    }
    void Start()
    {
        GameObject alternativMUDClient = GameObject.FindWithTag ("AlternativMUDClient");
        if (alternativMUDClient != null) {
            guiLoginPanelScript = alternativMUDClient.GetComponent<GUILoginPanel>();
        } else {
            Debug.LogWarning ("PlayerMovement: Cannot find by tag: #AlternativMUDClient");
        }
        GameObject _pointer1 = GameObject.FindGameObjectWithTag ("Pointer1");
        if (_pointer1 != null) pointer1 = _pointer1.transform;

        head = Util.FindChildWithName(transform, "Head");
        rightShoulder = Util.FindChildWithName(transform, "RightShoulder");
        rightArm = Util.FindChildWithName(transform, "RightArm");
        rightForearm = Util.FindChildWithName(transform, "RightForeArm");
        rightHand = Util.FindChildWithName(transform, "RightHand");
        if(head != null && rightShoulder != null && rightArm != null && rightForearm != null && rightHand != null) {
            Debug.Log ("Got UMA rigs: rightShoulder="+rightShoulder.name+", rightArm="+rightArm.name+", rightForearm="+rightForearm.name+", rightHand="+rightHand.name);
        }
        else {
            Debug.Log ("Could not get UMA rigs!");
        }
    }
	// Use this for initialization
	void Start () {
		DontDestroyOnLoad (gameObject);

		guiLoginPanelScript = GetComponent<GUILoginPanel> ();
		if (connectionMaintainer == null) {
			connectionMaintainer = new ConnectionMaintainer(hostname, port);
		}

		if (connectionMaintainer.running == false) {
			Thread t = new Thread(new ThreadStart(connectionMaintainer.RunReader));
			t.Start();
		}
	}