How to call Unityscript from Csharp?

How do you call a unity script class from a csharp class? I believe I am missing an include somewhere…

I have:

using UnityEngine;
using System;
using System.Collections.Generic;

public class GameKitManager : MonoBehaviour
{
	private GameRules gameRules;


    void Awake()
    {
		// Set the GameObject name to the class name for easy access from Obj-C
		gameObject.name = this.GetType().ToString();
		gameRules = GameObject.Find("GameRules").GetComponent(GameRules) as GameRules;
    }
}

Thanks :slight_smile:

You need to put your UnityScript in “Plugins” folder so it’s compiled before the C#. Once you do that, it should be visible as its own class/type to C#.

Muchos gracias :slight_smile: