void Start()
 {
     er             = GameObject.FindGameObjectWithTag("Envanter").GetComponent <Envanter>();
     el             = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <El>();
     yp             = GameObject.FindGameObjectWithTag("YanPanel").GetComponent <YanPanel>();
     BlockHighlight = GameObject.FindGameObjectWithTag("CubeHighlight");
     dataitem       = GameObject.FindGameObjectWithTag("DataItem").GetComponent <DataItem>();
 }
Beispiel #2
0
 void Start()
 {
     if (!isLocalPlayer)
     {
         el       = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <El>();
         er       = GameObject.FindGameObjectWithTag("Envanter").GetComponent <Envanter>();
         yan      = GameObject.FindGameObjectWithTag("YanPanel").GetComponent <YanPanel>();
         animator = GetComponent <Animator>();
     }
 }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     er = GameObject.FindGameObjectWithTag("Envanter").GetComponent <Envanter>();
     el = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <El>();
     yp = GameObject.FindGameObjectWithTag("YanPanel").GetComponent <YanPanel>();
 }