How to add item to Script Written in C# ?

Hello again, I wrote 2 script sheets. One of them is C# and other is JS.

So, I’ve got an array list in C#, I want to add new items with my javascript. But MonoDevelop can’t shows the script in code suggestions :confused:

As you can see at the picture below ;

[15066-adsız.png|15066]

There’s ArrayListForDucks is opened at tab, but doesn’t seen by Mono ? So what can i do ? All Variables are Static.

The problem is that C# project and JS project are separate and types in one of them doesn’t know about types in second. You can trick this behavior by putting ArrayListForDucks.cs into Assets\Plugins folder (see this question for explanation).

But if you don’t have to use different languages, then just stick to either C# or JS.