Convert unityscript to C#

function Update () {
//sends messages automatically from server
if (Initializing.Initialized) {
if (Time.time - lastNotice > noticeFrequency && totalEntries != -1) {
networkView.RPC(“SendEntry”, RPCMode.Others, scrollingNotices[nextNoticeNumber], 3);
if (nextNoticeNumber < totalEntries) nextNoticeNumber++;
else nextNoticeNumber = 0;
lastNotice = Time.time;
}
}
}
Unity error CS0103: The name `Initializing’ does not exist in the current context.
Please help, how to fix for C#

It looks like whatever code you copied this from has a class or enum called “Initializing.” Probably a class, based on how you’re calling it… You need to find that and include it with your code.

My God, this is “Initializing.js” )),thanks

continue…

var data : HostData[] = MasterServer.PollHostList();

	var pos = 40;
	for (var element in data)
	{
		var name = element.gameName;
my code:
HostData[] = MasterServer.PollHostList();
int pos = 40;
?
string name =element.gameName;

How to convert “for (var element in data)”