Quantcast
Channel: Questions in topic: "namespace"
Viewing all articles
Browse latest Browse all 398

How can I access a method from a namespace to a class not belonging to any namespace ?

$
0
0
How can I access a method from a namespace to a class not belonging to any namespace ? (or it does but I don't know what to use) EXAMPLE: //CLASS 1 using UnityEngine; using System.Collections; public class Human: MonoBehaviour { static public void Hello () {} } And //CLASS 2 using UnityEngine; using System.Collections.Generic; using System.Linq; namespace Company.UI.Magic { public class SomeClass: MonoBehaviour { void Start () { //QUESTION . How can I run Hello Method from here??? Human.Hello() is not working! } } } **NOTE: CLASS 2 WAS IN PLUGIN FOLDER - THIS CAUSED MY PROBLEMS** It's solved now!

Viewing all articles
Browse latest Browse all 398

Trending Articles



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