Question by
MitchellG · Jul 15, 2016 at 06:47 PM ·
error message
revolving error from error CS1729 to errors: CS1502 and error CS1503
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 ();
}
}
Comment
Your answer
Follow this Question
Related Questions
Position is infinite 0 Answers
Unity Package Manager Error 4 Answers