Co jest źle? Błąd namespace "global::" already contains a definition

0
using System.Collections;
using UnityEngine;

public class CurrencyConverter : MonoBehaviour {

	private static CurrencyConverter instance;
	public static CurrencyConverter {
		get {
			return instance;
		}
	}

	void Awake(){
		CreateInstance ();
	}

	void CreateInstance(){
		if (instance == null) {
			instance = this;
		}
	}

	public string GettCurencyIntoString(float valueToConvert, bool currencyPerSec, bool currencyPerClick){
		string converted;
		if (valueToConvert >= 1000000) {
			converted = (valueToConvert / 1000000f).ToString ("f3") + " Mil";
		} else if (valueToConvert >= 1000) {
			converted = (valueToConvert / 1000f).ToString ("f3") + " Tys";
		} else {
			converted = "" + valueToConvert;
		}

		if (currencyPerSec == true) {
			converted = converted + " ZNS";
		}

		if (currencyPerClick == true) {
			converted = converted + " ZNS";
		}

	}

}

Error: The namespace "global::" already contains a definition for "CurrencyConverter"

0
public static CurrencyConverter {
    get {
        return instance;
    }
}

Składnia wygląda tak
atrybuty public static typ CurrencyConverter nazwa <nima> akcesoryget { ... }

1 użytkowników online, w tym zalogowanych: 0, gości: 1