Quantcast
Channel: Answers for "How to declare and access other scripts publicly in Csharpe?"
Viewing all articles
Browse latest Browse all 6

Answer by Gorgo

0
0
@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 class FirstPersonController : MonoBehaviour So in order to call "FirstPersonController" script, we need to declare it's namespace with either of these ways: using UnityStandardAssets.Characters.FirstPerson; or straight at the declaration of our variable public UnityStandardAssets.Characters.FirstPerson.FirstPersonController player;

Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images