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 ![]()