Exemplo n.º 1
0
 void Start()
 {
     _kirby       = GetComponent <Kirby_actor>();
     _endRotation = transform.rotation;
     _jumpSpeed   = Mathf.Sqrt(2 * Mathf.Abs(Physics.gravity.y) * jumpHeight);
     _turnSpeed   = moveSpeed * 10;
 }
Exemplo n.º 2
0
 public void gameOver()
 {
     gameOverDisconnection = true;
     localPlayer.GetComponent <Kirby_actor>().isParalyzed = true;
     // NetworkManager.singleton.StopClient();
     // if(localPlayer.isServer) NetworkManager.singleton.StopHost();
     // NetworkManager.singleton.StopMatchMaker();
     NetworkManager.Shutdown();
     localPlayer = null;
     StartCoroutine(setGameOverPanel());
 }
 private void OnTriggerStay(Collider other)
 {
     kirby = other?.GetComponent <Kirby_actor>();
     if (!kirby || !kirby.isLocalPlayer)
     {
         return;
     }
     if (Input.GetKeyDown(KirbyConstants.KEY_ENTER_DOOR))
     {
         enterDoor();
     }
 }
 private void Start()
 {
     _kirby = GetComponentInParent <Kirby_actor>();
 }
 private void Start()
 {
     _kirby         = GetComponentInParent <Kirby_actor>();
     transformMouth = _kirby.mouth.gameObject.transform;
 }
Exemplo n.º 6
0
 void Start()
 {
     _kirby = GetComponent <Kirby_actor>();
 }