↧
Answer by dorpeleg
Make sure your "RandomScript" is a public class. public class RandomScript : MonoBehaviour { Make sure you add the script as a component to the cube. Make sure your reference to the cube is correct. If...
View ArticleAnswer by melonman
I finally found the answer to this. So to declare an instance of the script you want to access seems to be as follows //declare the actual script and then the name you want to //reference it as -...
View ArticleAnswer by Gorgo
@melonman All of the above should be valid. Also make sure you are including the namespace to the script title, if there is one. namespace UnityStandardAssets.Characters.FirstPersonController { public...
View Article