What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-24 23:25:02
character controller unity crouch
#pragma strict private var ch : CharacterController; private var startHeight : float; // initial height function Start() { ch = GetComponent(CharacterController); startHeight = ch.height; } function Update() { var newH : float = startHei... Add solution -
-
C# 2022-02-27 21:40:09
slomotion in unity 3d
using UnityEngine; using System.Collections; public class SlowMotion : MonoBehaviour { float currentAmount = 0f; float maxAmount = 5f; // Use this for initialization void Start () { } // Update is called once per frame void Update () { if(Input.GetK... Add solution -
C# 2022-02-12 04:45:13
first person camera controller unity
//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 -