Esempio n. 1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Esempio n. 2
0
 private void Start()
 {
     navMeshAgent = GetComponent <NavMeshAgent>();
     navMeshAgent.SetDestination(pointDestination.transform.position);
     objectDeliverPosition = transform.GetChild(0);
     rigidbody             = GetComponent <Rigidbody>();
     navMeshAgent.speed    = clientSpeed;
     loadingBar            = waitBar.GetComponentInChildren <loadingbar>();
     waitBar.gameObject.SetActive(false);
 }
Esempio n. 3
0
    void Awake()
    {
        obj = GetComponent <UISlider>();

        inst = this;
        Common.DEBUG_MSG("loadingbar::Start(): sliderValue=" + obj.sliderValue);

        getLoadingbarAtlas();
        NGUITools.SetActive(obj.gameObject, false);

        label = UnityEngine.GameObject.Find("loadingdescr").GetComponent <UILabel>();
        NGUITools.SetActive(label.gameObject, false);
    }
	void Awake ()     
	{
		obj = GetComponent<UISlider>();

		inst = this;
		Common.DEBUG_MSG("loadingbar::Start(): sliderValue=" + obj.sliderValue);
		
		getLoadingbarAtlas();
		NGUITools.SetActive(obj.gameObject, false);
		
		label = UnityEngine.GameObject.Find("loadingdescr").GetComponent<UILabel>();
		NGUITools.SetActive(label.gameObject, false);
	}
 void Awake()
 {
     locT = loc.GetComponent <Transform>();
     _lB  = Image.GetComponent <loadingbar>();
 }