This commit is contained in:
2023-03-09 16:00:42 +01:00
parent 75f08b031f
commit 8dc0ae98fb
12 changed files with 225 additions and 121 deletions

View File

@@ -31,7 +31,7 @@ public class PlayerController : MonoBehaviour
private void Awake() {
cc = FindObjectOfType<CameraController>(); //kamera vezerlo referencia
activeControllType = ControllType.Swipe;
activeControllType = ControllType.Button;
}
public void setControllType(ControllType controlltype){
@@ -85,7 +85,7 @@ public class PlayerController : MonoBehaviour
}
}
}else if(activeControllType == ControllType.Button){
jumpforce = 2;
//jumpforce = 100;
/*leftButton.onClick.AddListener(goRight);
jumpButton.onClick.AddListener(jump);
rightButton.onClick.AddListener(goLeft);*/