What do you want to save?
Add Code snippet
New code examples
-
C# 2021-10-08 13:00:05
how to make a restart button in unity 2d
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class ReloadButten : MonoBehaviour { // Start is called before the first frame update void Start() { } /... Add solution -
Other 2021-10-05 18:24:03
unity3d spin wheel
using UnityEngine;using System.Collections;using System.Collections.Generic; public class SpinWheel : MonoBehaviour{ public List<int> prize; public List<AnimationCurve> animationCurves; &... Add solution -
Other 2021-10-02 07:38:03
double jump script unity
There are a lot of ways to implement the "double jump" feature. The most straight forward would be this one: public int maxJumps = 2; private int jumps; private float jumpForce = 5f; void Update() { if(Input.GetKeyDown(KeyCode.Space) || I... Add solution -
Other 2021-09-29 06:29:03
unity first person controller script
//Fixed the issues with the previous controller using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraLook : MonoBehaviour { public float minX = -60f; public float maxX = 60f; public float sensitivity; pub... Add solution -
Other 2021-09-27 10:10:03
player controls for top down game script
using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Security.Cryptography; using UnityEngine; public class PlayerController : MonoBehaviour { public float speed = 20.0f; public float hori... Add solution -
C# 2021-09-26 22:25:02
how to add movement in unity 3d
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerMovement : MonoBehaviour { //this is for first person movement public CharacterController controller; public float speed = 12f; Vector3 velo... Add solution