Theres Problems with my scipts

Hello My name is Oliver im working on a game, some Minecraft and Rust. But there is a problem then say there coming problems i cant make it, have see the videos its java script and c# script i need. Theres problems so i cant test the game, i has see the tutorial videos and its not working.

Can you post the code here so that we can view it and help you?

1 Like

1:using UnityEngine;
2:using System.Collections;
3:
4:public class PickUp : MonoBehaviour {
5:
6: // Use this for initialization
7: void Start () {
8:
9: }
10:
11: // Update is called once per frame
12: void Update () {
13:
14:
15:
16:
17: void OnTriggerEnter (Collider other) (
18:
19: Destroy(gameObject);
20:
21:
22:
23: )
24:)
25:

24: )
4 public class PickUp : MonoBehaviour {

Erm… It looks like you have no idea what you’re doing. You need to be acquainted with the basics of scripting in Unity. Go here and learn : Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn

Also you might have tried to do this?

1:using UnityEngine;
2:using System.Collections;
3:
4:public class PickUp : MonoBehaviour {
5:
6: // Use this for initialization
7: void Start () {
8:
9: }
10:
11: // Update is called once per frame
12: void Update () {
13:
14:
15:
16:}
17: void OnTriggerEnter (Collider other) {
18:
19: Destroy(other.gameObject);
20:
21:
22:
23: }
24}
25:

No sorry im new to Unity :).

Whats should i write if i will only take tree up, in my game on other som cube or other things?

Unfortunately, and FORTUNATELY, Unity is not that simple. You have to create your objects and then handle their behaviours through a script. You need to study Unity for a while and you will realize why your question doesn’t have a simple answer. Learn along with tutorials and within a few weeks you should be able to answer these questions on your own.Good luck.

Where can i download Unity things some a island or a tree?

http://unity3d.com/asset-store