What do you want to save?
Add Code snippet
New code examples
-
C# 2021-12-23 17:16:13
if we control the player with mouse in unity will it work in mobile
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Movement : MonoBehaviour { //variables public float moveSpeed = 300; public GameObject character; private Rigidbody2D characterBody; private float ScreenWid... Add solution -
C# 2021-10-23 19:01:14
C# sprint key
if (Input.GetKey("left shift")){ // If Player Presses Shift Key Sprint = 2f; // Sprint Double Speed } else { Sprint = 1f; // Disable Sprint } // Move Player controller.Move(move * speed * Sprint * Time.deltaTime); // Move is your Player Move... Add solution -
C# 2021-08-31 14:28:01
unity mobile controls
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Movement : MonoBehaviour { //variables public float moveSpeed = 300; public GameObject character; private Rigidbody2D characterBody; private float ScreenWid... Add solution