protected virtual void Start() { targetOb = GameObject.FindWithTag("Player").transform; OrderState = Random.Range(0, 100) > 100 ? ORDER_STATE.Idle : ORDER_STATE.Patrol; //Set HP CurrentHP = mDATA.maxHP; hpSliderUI = transform.GetComponentInChildren <MonsterHPSliderSc>(); hpSliderUI.SetSliderStartValue(mDATA.maxHP, CurrentHP); hpSliderUI.gameObject.SetActive(false); }