Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

revolving error from error CS1729 to errors: CS1502 and error CS1503

$
0
0
**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 (); } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>