Click here to Skip to main content
15,888,020 members
Home / Discussions / C#
   

C#

 
AnswerRe: WPF C# Selected Row from a Listbox in the Database Pin
Mycroft Holmes27-Apr-22 12:43
professionalMycroft Holmes27-Apr-22 12:43 
GeneralRe: WPF C# Selected Row from a Listbox in the Database Pin
Diane Dolinski27-Apr-22 19:47
Diane Dolinski27-Apr-22 19:47 
GeneralRe: WPF C# Selected Row from a Listbox in the Database Pin
Diane Dolinski28-Apr-22 1:24
Diane Dolinski28-Apr-22 1:24 
QuestionHow do I avoid ORM tools 'polluting' the model? Pin
Patrick Skelton26-Apr-22 21:47
Patrick Skelton26-Apr-22 21:47 
AnswerRe: How do I avoid ORM tools 'polluting' the model? Pin
Richard Deeming26-Apr-22 22:16
mveRichard Deeming26-Apr-22 22:16 
GeneralRe: How do I avoid ORM tools 'polluting' the model? Pin
Patrick Skelton27-Apr-22 21:18
Patrick Skelton27-Apr-22 21:18 
AnswerRe: How do I avoid ORM tools 'polluting' the model? Pin
Gerry Schmitz27-Apr-22 6:11
mveGerry Schmitz27-Apr-22 6:11 
GeneralRe: How do I avoid ORM tools 'polluting' the model? Pin
Patrick Skelton27-Apr-22 21:20
Patrick Skelton27-Apr-22 21:20 
AnswerRe: How do I avoid ORM tools 'polluting' the model? Pin
jschell8-May-22 7:54
jschell8-May-22 7:54 
QuestionTLS 1.3 on Windows Vista Pin
moxol26-Apr-22 4:27
moxol26-Apr-22 4:27 
AnswerRe: TLS 1.3 on Windows Vista Pin
RedDk26-Apr-22 9:38
RedDk26-Apr-22 9:38 
AnswerRe: TLS 1.3 on Windows Vista Pin
Randor 26-Apr-22 17:22
professional Randor 26-Apr-22 17:22 
AnswerRe: TLS 1.3 on Windows Vista Pin
Richard Deeming26-Apr-22 21:22
mveRichard Deeming26-Apr-22 21:22 
PraiseRe: TLS 1.3 on Windows Vista Pin
Randor 26-Apr-22 21:54
professional Randor 26-Apr-22 21:54 
AnswerRe: TLS 1.3 on Windows Vista Pin
moxol27-Apr-22 1:01
moxol27-Apr-22 1:01 
GeneralRe: TLS 1.3 on Windows Vista Pin
dan!sh 2-May-22 21:17
professional dan!sh 2-May-22 21:17 
QuestionClickOne Installation folder in the user pc Pin
Luis M. Rojas20-Apr-22 6:26
Luis M. Rojas20-Apr-22 6:26 
AnswerRe: ClickOne Installation folder in the user pc Pin
Dave Kreskowiak20-Apr-22 6:33
mveDave Kreskowiak20-Apr-22 6:33 
GeneralRe: ClickOne Installation folder in the user pc Pin
Luis M. Rojas20-Apr-22 9:55
Luis M. Rojas20-Apr-22 9:55 
GeneralRe: ClickOne Installation folder in the user pc Pin
Dave Kreskowiak20-Apr-22 9:56
mveDave Kreskowiak20-Apr-22 9:56 
QuestionNEED HELP- ERROR (71,10): error CS1513: } expected) Pin
Joana Gonçalves 202220-Apr-22 3:22
Joana Gonçalves 202220-Apr-22 3:22 
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class moviment1 : MonoBehaviour
{
    public float Speed;
    public float JumpForce; 

    public bool isJumping;
    public bool doubleJump;

    private Rigidbody2D rig;
    
    // Start is called before the first frame update
    void Start()
    {
      rig = GetComponent<Rigidbody2D>();
    }

    // Update is called once per frame
    void Update()
    {
        Move();
        Jump();
    }
   //  MOVE 

    void Move()
    {
        Vector3 movement = new Vector3(Input.GetAxis("Horizontal"), 0.0f, 0.0f);
        transform.position += movement * Time.deltaTime * Speed;
    }
  
     // JUMP
    void Jump()
    {
        if (Input.GetButtonDown("Jump") )
        {
            if(!isJumping)
            {
           
         rig.AddForce(new Vector2(0.0f, JumpForce), ForceMode2D,Impulse);
        doubleJump = true;
        }
          else
          {
             if(doubleJump)
             {
                rig.AddForce(new Vector2(0.0f, JumpForce), ForceMode2D,Impulse);
           doubleJump = false;
    }
    }
    }
    }      
       void OnCollisionEnter2D(Collision2D collision)
       {
         if(collision.gameObject.layer == 8)
         {
             isJumping = false;
         }
       }
       void OnCollisionExit2D(Collision2D collision)
       {
          if(collision.gameObject.layer == 8)
      {  

         isJumping = true;
   }
  
       } 

AnswerRe: NEED HELP- ERROR (71,10): error CS1513: } expected) Pin
Dave Kreskowiak20-Apr-22 3:51
mveDave Kreskowiak20-Apr-22 3:51 
AnswerRe: NEED HELP- ERROR (71,10): error CS1513: } expected) Pin
Raphael Adeniji26-Apr-22 8:18
Raphael Adeniji26-Apr-22 8:18 
QuestionWindows.Devices.HumanInterfaceDevice Pin
Member 1556267619-Apr-22 4:29
Member 1556267619-Apr-22 4:29 
AnswerRe: Windows.Devices.HumanInterfaceDevice Pin
OriginalGriff19-Apr-22 6:52
mveOriginalGriff19-Apr-22 6:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.