void Start() { _kirby = GetComponent <Kirby_actor>(); _endRotation = transform.rotation; _jumpSpeed = Mathf.Sqrt(2 * Mathf.Abs(Physics.gravity.y) * jumpHeight); _turnSpeed = moveSpeed * 10; }
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; }
void Start() { _kirby = GetComponent <Kirby_actor>(); }