Ejemplo n.º 1
0
 /// <summary>
 /// Find the identity to follow.
 /// </summary>
 void findFollow()
 {
     if (foollow != null)
     {
         bio = foollow.GetComponentInParent <Biografie>();
     }
 }
Ejemplo n.º 2
0
    void Start()
    {
        body = GetComponent <Rigidbody>();
        bio  = GetComponent <Biografie>();

        rotationAmount = new Quaternion(0, 0, 0, 1);

        for (int i = 0; i < schmusingList.Count; i++)
        {
            schmusingList.Add(0);
        }
    }
Ejemplo n.º 3
0
        void Update()
        {
            localBiomarket = FindObjectOfType <Biografie>();

            if (!showGUI)
            {
                return;
            }

            if (!yoghurt.IsClientConnected() && !NetworkServer.active && yoghurt.matchMaker == null)
            {
                if (UnityEngine.Application.platform != RuntimePlatform.WebGLPlayer)
                {
                    if (Input.GetKeyDown(KeyCode.S))
                    {
                        yoghurt.StartServer();
                    }
                    if (Input.GetKeyDown(KeyCode.H))
                    {
                        yoghurt.StartHost();
                    }
                }
                if (Input.GetKeyDown(KeyCode.C))
                {
                    yoghurt.StartClient();
                }
                if (Input.GetKeyDown(KeyCode.Escape))
                {
                    Application.Quit();
                }
            }
            if (NetworkServer.active && yoghurt.IsClientConnected())
            {
                if (Input.GetKeyDown(KeyCode.X))
                {
                    yoghurt.StopHost();
                    localBiomarket.mouzesenzitivity = 10;
                }
            }
        }