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

Trouble Calling a Function from Another Script

$
0
0
Hey all, I'm getting the following; error CS0246: The type or namespace name `Pause' could not be found. Are you missing an assembly reference? In reference to this line in one of my scripts; PauseGame pausegame = GetComponent(); I'm attempting to grab the following function from another of my scripts named PauseGame.cs public void Pause() I've checked a few forums and some similar questions which resolved some other issues with this piece of code I had, but now I can't seem to figure out what to do. New to Unity so I don't understand 100% of the concepts but I can't see what I'm doing wrong. Any help is much appreciated.

Viewing all articles
Browse latest Browse all 2891


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