What do you want to save?
Add Code snippet
New code examples
-
C# 2021-10-28 00:05:08
unity switch to scene and transfer data
using UnityEngine; /// <summary>Manages data for persistance between levels.</summary> public class DataManager : MonoBehaviour { /// <summary>Static reference to the instance of our DataManager</summary> public static Da... Add solution -
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 -
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
Best helpers
Ranking is empty