What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-30 03:46:04
enemy code unity
/*if you want the code to work you need to do this steps step 1 : you need to have on your enemy a collider. step 2 : you will need to add the target (what the enemy goind to follow); step 3 : you will need to add how match health he will have and how fa... Add solution -
C# 2021-09-28 13:58:02
how to make a door open in unity
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DoorTrigger : MonoBehaviour { [SerializeField] GameObject door; bool isOpened = false; void OnTriggerEnter(Collider col) { if (!isOpened) { isOpened = true... Add solution -
C# 2021-09-28 13:12:05
unity look at target
transform.LookAt(target.transform.position); 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