protected override void OnEnable() { base.OnEnable(); hpBarPrefab = GetComponent <AdjustHpBar>(); hpBarPrefab.SetHpBar(); playerMove.enabled = true; }
private void Awake() { mat = GetComponent <MeshRenderer>().material; hpBarPrefab = GetComponent <AdjustHpBar>(); hpBarPrefab.SetHpBar(); }