Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Z))
     {
         mobManager.Initialize(seatNum, mobPos);
     }
     if (Input.GetKeyDown(KeyCode.X))
     {
         playerManager.GenPlayer(playerPos);
     }
     if (Input.GetKeyDown(KeyCode.C))
     {
         mobManager.StandUp();
     }
     if (Input.GetKeyDown(KeyCode.V))
     {
         playerManager.player.transform.FindChild("b").GetComponent <PlayerAction> ().Move();
     }
     if (Input.GetKeyDown(KeyCode.B))
     {
         StartCoroutine(Run());
     }
 }