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>(); }
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>(); } }
// Use this for initialization void Start() { er = GameObject.FindGameObjectWithTag("Envanter").GetComponent <Envanter>(); el = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <El>(); yp = GameObject.FindGameObjectWithTag("YanPanel").GetComponent <YanPanel>(); }