void Awake() { if (instance == null) { instance = this; } }
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); }
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>(); }