Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetMouseButtonDown(0))
     {
         Debug.Log("jump");
         actionCharacter.Jump();
     }
 }
Beispiel #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetMouseButtonDown(0))
     {
         Debug.Log("jump");
         actionCharacter.Jump();
     }
     else if (Input.GetMouseButtonDown(1))
     {
         Debug.Log("sliding");
         actionCharacter.Sliding();
     }
 }