What do you want to save?
Add Code snippet
New code examples
-
Go 2021-10-18 04:23:09
how to make enemy go in one direction unity 2d
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyPatrol : MonoBehaviour { public float speed; public float distance; private bool movingRight = true; public Transform groundDetection; ... Add solution -
C# 2021-10-09 01:05:03
new movement script unity
//make sure to add a CharacterController to the thing that you want to move using UnityEngine; public class PlayerMovement : MonoBehaviour { CharacterController characterController; public float jumpSpeed = 8.0f; public float gravity = 20.0f... Add solution -
C# 2021-10-01 17:53:06
simple first person camera unioty
public float turnSpeed = 4.0f; public float moveSpeed = 2.0f; public float minTurnAngle = -90.0f; public float maxTurnAngle = 90.0f; private float rotX; void Update () { MouseAiming(); Keyboard... 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 -
Other 2021-09-25 03:52:05
The namespace '<global namespace>' already contains a definition for stackoverflow
public float speed = 10f; private Transform target; private int wavepointIndex = 0; void start() { target = Waypoints.points[0]; } void update() { Vector3 dir = target.position - transform.position; transform.Translate(dir.normalized * speed ... Add solution -
C# 2021-09-10 20:43:02
C# player movement script unity
//make sure to add a CharacterController to the thing that you want to move using UnityEngine; public class PlayerMovement : MonoBehaviour { CharacterController characterController; public float jumpSpeed = 8.0f; public float gravity = 20.0f... Add solution
Best helpers
Ranking is empty