**Im having issues trying access a method from another script that is setup as:**
public class Scene0State : IStateBase
{
//method() im trying to call
}
**And i keep jumping from error CS1729 to errors: CS1502 and error CS1503
when I change the line code of**
sceneState = new Scene0State (this);
**back and forth to this**
sceneState = new Scene0State ();
**is there a better way to access this script when it is not monobehaviour?**
public class ButtonEvent : MonoBehaviour {
private Scene0State sceneState;
void Awake()
{
sceneState = new Scene0State (this);
}
void Start () {
}
void Update () {
}
void OpenPanel()
{
sceneState.MenuPanel ();
}
}
↧