Assets/Scripts/BackGround_scrolling_script.cs(5,14): error CS0101: The namespace `global::' already contains a definition for `BackGround_scrolling_script'
im having a problem with `global::' then im making this question to you guys may found a solution to me , if you already know what is the problem then tell me my script is down below please help me find the solution to this problem this will help me alot thx for reading
using System.Collections; using System.Collections.Generic; using UnityEngine;
public class BackGround_scrolling_script : MonoBehaviour { public float backgroundSize;
private Transform cameraTransform;
private Transform[] layers;
private float viewZone = 10;
private int leftIndex;
private int rightIndex;
private void Start()
{
cameraTransform = Camera.main.transform;
layers = new Transform[transform.childCount];
}
}
Your answer
Follow this Question
Related Questions
Are lists better than arrays? And why? 1 Answer
CustomPreferencesGUI has slow refresh in one scrpit, but not in another 1 Answer
how do i design as Talking Angela App using unity 3D? 0 Answers
Foreach + Reflexion to loop every class's property don't work 1 Answer
How to keep settings from a script (Volume Script) on the GUI to another scene (Level Game) 0 Answers