Ejemplo n.º 1
0
    public void Fall()
    {
        if (!Fallen)
        {
            Fallen = true;

            BlockBar(true);

            InputController.RandomizeControls();
            InputController.Detach();
            InputController.BlockControls(true);
            InputController.SetCanAttach(false);

            BalanceGUI.SetActive(false);
            IconImage.SetActive(false);

            Hips.GetComponent <SpringJoint>().spring = 0f;
            Hips.GetComponent <Rigidbody>().velocity = Vector3.zero;

            NetworkServerManager.getInstance().ServerStringMessageSender(InputController, "Fallen");
            ShootKeys(MatchManager.getInstance().keyCollected[gameObject.layer - 9]);
            MatchManager.getInstance().keyCollected[gameObject.layer - 9] = 0;
        }
    }