public void SetConsciousState(bool conscious)
 {
     if (conscious)
     {
         playerMove.allowInput = true;
         playerSprites.RpcSetPlayerRot(0f);
     }
     else
     {
         playerMove.allowInput = false;
         playerSprites.RpcSetPlayerRot(-90f);
         soundNetworkActions.RpcPlayNetworkSound("Bodyfall", transform.position);
         if (Random.value > 0.5f)
         {
             playerSprites.currentDirection = Orientation.Up;
         }
     }
 }
    public void SetConsciousState(bool conscious)
    {
        //Store the server conscious state for this player:
        playerScript.playerHealth.serverPlayerConscious = conscious;

        if (conscious)
        {
            playerMove.allowInput = true;
            playerSprites.RpcSetPlayerRot(0f);
        }
        else
        {
            playerMove.allowInput = false;
            playerSprites.RpcSetPlayerRot(-90f);
            soundNetworkActions.RpcPlayNetworkSound("Bodyfall", transform.position);
            if (Random.value > 0.5f)
            {
                playerSprites.currentDirection = Orientation.Up;
            }
        }
    }