コード例 #1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
コード例 #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);
 }
コード例 #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);
    }
コード例 #4
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);
	}
コード例 #5
0
 void Awake()
 {
     locT = loc.GetComponent <Transform>();
     _lB  = Image.GetComponent <loadingbar>();
 }