Hi folks,
I’m currently programming my own Minecraft in Unity (it’s name is Mikacraft), but I’ve the following problem:
In a YouTube-video the programmer dragged a script (the script is to mine blocks) where it says “SampleScene”. I’ve tried to drag this script there, but in my project I can’t drag the script where it says “SampleScene” (I currently use version 2020.2.0f1 and the programmer has version 5.6.2f1), but the script is very IMPORTANT for my game! Is there perhaps a detour to use this script in the project without dragging it to where it says “SampleScene”? Here is the code of the script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BlockScript : MonoBehaviour {
// Start is called before the first frame update
void Start() {
}
// Update is called once per frame
void Update() {
}
void OnMouseDown() {
Destroy(this.gameObject);
}
}
It would be really nice for me, if you can help me.
Sincerely yours,
Atten007